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 [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.