Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cheald
on April 24, 2012
|
parent
|
context
|
favorite
| on:
Whitelist Your Routes, "match" is Evil
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: