Displaying 1 result from an estimated 1 matches for "degreescontroller".
2007 Jul 25
5
editing multiple models in one form
...%= submit_tag "Edit" %>
<%= end_form_tag %>
<%= link_to ''Show'', :action => ''show'', :id => @degree %> |
<%= link_to ''Back'', :action => ''list'' %>
and my controller file looks like:
class DegreesController < ApplicationController
model :degree
model :assigned
def index
list
render :action => ''list''
end
# GETs should be safe (see
http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],...