verify
create,update,destroyのアクションの呼び出しをpostメソッドに制限します。
/controllers/main_controller.rb verify :only => [:new, :update],:method => :post, :redirect_to => {:action => :index}
create,update,destroyのアクションの呼び出しをpostメソッドに制限します。
/controllers/main_controller.rb verify :only => [:new, :update],:method => :post, :redirect_to => {:action => :index}