GET & POST

To disable CSFP at the top of a controller:

skip_before_filter :verify_authenticity_token

http://ryandaigle.com/articles/2007/9/24/what-s-new-in-edge-rails-better-cross-site-request-forging-prevention

Controllers

Layout Controls

layout :some_layout, :only => [:new, :edit]
layout :some_other_layout, :except [:list, :show]
 
ruby_on_rails.txt · Last modified: 2009/04/13 20:04 by sammy
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki