Alexandre Balon-Perin
unread,Jan 28, 2012, 2:06:31 PM1/28/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Hi,
I am trying to make the search_field look into a table of my database
which is different from the form's object's table.
Basically, I want to do this:
<td><%= f.search_field(:sport, Sport.all.collect {|s|[s.sport_name]})
%></td>
But it does not work obviously.
Sorry if this issue has already been raised but I did not find any
solution after searching on google and in this group posts.
Thank you in advance for your help,
Alex