2009/6/19 James Byrne <[email protected]>:
>
>...
>
> I am already using the select helper inside a form_for construct. Could
> you show me a small example of what you do and what the page source
> generated looks like?
> --
<% form_for(@note) do |f| %>
...
<%= f.label :location_id %><br />
<%= f.select :location_id, Location.get_names_and_ids %>
provides
<label for="note_location_id">Location</label><br />
<select id="note_location_id" name="note[location_id]"><option
value="31">Brechfa Blaen-hauliw 1 SN535364</option>
<option value="32">Brechfa Blaen-hauliw 2 SN531362</option>...
Which is not what you are looking for at all :(
On second thoughts I think you may have to do it yourself.
Sorry
Colin
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---