Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Fix - not :as but :via. Using match :via => :post is worse than just post 'data', it is obvious btw :)

and there are almost no odd cases in fact. I would propose special route named "not_found" or "default" like route to be called if no routes found. Nice idea IMO, what do you think?



Thanks, it is early :)

I had to use match when moving from Rails 2 to Rails 3 and parts of the route did not match the controller at all. But I think it was mostly because the upgrade plugin recommended it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: