[Rails] error with select helper
Hi everyone,
Maybe you guys can help me with a question. I am
getting an error with an instance variable in a view and a select
list.
<%=select("sub_season","id",@sub_seasons.collect {|s|
[s.sub_season_type,s.id]}) %>
undefined method `id' for #<Array:0x0000010ea334f0>
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home