2 ms·
Rails 2.3 also has: map.connect "/foo", :controller => "foos", :action => "index", :conditions => { :method => :get } Which is the "correct" way to do ver
by cheald 15y ago
Rails 2.3 also has:
map.connect "/foo", :controller => "foos", :action => "index", :conditions => { :method => :get }
Which is the "correct" way to do verb-constrained non-resource routes. Not ever routing the wrong verb is even better than checking it in the controller.