Check out some of the railscasts episodes (http://railscasts.com).
Search for ''multiple'' and you might find something of interest
to you.
On Jun 28, 2:23 pm, richardsugg
<richards...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I have a table that contains user options, so the table looks like
> id
> username
> option_name
> option_value
>
> How do I create a single page that allows me to edit all the options?
> Would it be something like
>
> <% form_for :options, :url => { :action =>
"update_options" } do |
> form| %>
> <tr>
> <td><%= form.label :option_name %></td>
> <td><%= form.text_field :option_value %></td>
> </tr>
> <% end %>
> <%= submit_tag "save", :class => "save" %>
>
> If so, how do I send both the id and username?
>
> Thanks,
--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
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.