I know I have done this before, but for the life of me I can\'t figure it out.
I have a table with a \"called\" field in it. I need to use a checkbox to update the db an
In view:
<% form_for :rsvp, :url => {:controller => "rsvp", :action => "update"} do |f| %> <%= f.check_box :called %> <%= f.submit "Update" %> <% end %>
In rsvp controller, update method:
@RSVPobject.updateAttribute(:called, params[:rsvp][:called])