NoMethodError in LoadoutController#edit

undefined method `map' for nil:NilClass

Extracted source (around line #6):
4
5
6
7
8
9
              
def edit
@loadout = Loadout.parse @flight.airframe, @flight.loadout
@stations = Settings.loadout.send(@flight.airframe).map { |config| Station.new(config) }
end
def update

Rails.root: /home/fpt/www

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"flight_id"=>"1344"}

Response

Headers:

None