I have a table named "posts" with an "author" attribute. At
the posts
index page, the user should be able to sort the posts through a drop
down list that contains the author name.
My problem is, when I use form option helper "collection_select", it
gives me all the authors that contained in the "field" - 3 Johns and 4
Chris -. How can I remove the duplicates from the drop down list?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---