Displaying 1 result from an estimated 1 matches for "adminelemento".
2006 May 24
0
Problems validating form with collection_select
...de values for all the required fields,
everything is OK, the collection_select works just fine and stores the
proper value in the Elemento table.
BUT, when I don''t provide one of the required fields so that the model
doesn''t validate, I get the following error:
Showing app/views/adminelemento/new.rhtml where line #5 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.inject
And it points the error to the collection_select line in new.rhtml. Why
collection_select becomes a problem if the v...