Rails is Web Architecture Friendly
I created a new Rails project today, using Rails 1.1 for the first time. There's a little gem inside Controllers created by the scaffolding:
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :action => :list }
Not only is that so terse and simple to express in Ruby on Rails, but it's the right thing to do. Any action that may result in modification of the resource should be performed with POST.
It's great to see these types of Web Architecture best practices enforced, so that more applications are built with web friendliness.
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
:redirect_to => { :action => :list }
Not only is that so terse and simple to express in Ruby on Rails, but it's the right thing to do. Any action that may result in modification of the resource should be performed with POST.
It's great to see these types of Web Architecture best practices enforced, so that more applications are built with web friendliness.