I have a form called edit.rhtml that lets you edit attributes of an
Event object.
In the file I have the following code:
<% form_tag :action => 'update', :id => @event do %>
<%= render :partial => 'form' %>
<%= submit_tag_or_cancel 'Save Changes' %>
<% end %>
The 'update' method in the controller is called to update attributes in
the database. I understand this is my action.
But when I hit the "submit_tag_or_cancel" to save the changes, I get
routed to:
I have a form called edit.rhtml that lets you edit attributes of an
Event object.
In the file I have the following code:
<% form_tag :action => 'update', :id => @event do %>
<%= render :partial => 'form' %>
<%= submit_tag_or_cancel 'Save Changes' %>
<% end %>
The 'update' method in the controller is called to update attributes in
the database. I understand this is my action.
But when I hit the "submit_tag_or_cancel" to save the changes, I get
routed to: