[Rails] Collection_select
Hi,
I'm new using RoR and I have a ... trouble with
f.collection.select
What I have in a table is ... for example
group code
GroupA 07A
GroupA 08A
GroupA 10B
GroupB 06A
GroupB 11B
GroupB 07B
GroupC 10A
GroupC 09A
GroupC 09B
when I use
<%= f.collection_select :grupo, Equipo.find(:all), :id, :name, prompt:
'Choose a Group' %>
It shows the entire set of groups (9 groups) instead of only 3 (Group
A, Group B, Group C)
How can I make that it shows only one instead of 3 of each one?
--
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