I’ve got a form where I have several items (“packages”) listed and I
want to query a param that should contain all the “packages” from the
form in the controller. However I’m only getting the first item
returned.
<%= hidden_field ‘package[]’, ‘Name’, :value => p.Name %> i guess
nope:
You have a nil object when you didn’t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occured while evaluating nil.id_before_type_cast