RailsCasts Pro episodes are now free!

Learn more or hide this

Phillip Miller's Profile

GitHub User: philmill

Site: philmill.net

Comments by Phillip Miller


Unfortunately the official Rails api is misleading when describing how to use url_for and consequently link_to with nested routes. " If you have a nested route, such as admin_workshop_path you’ll have to call that explicitly (it’s impossible for url_for to guess that route)." This isn't the case since you could use url_for([:admin, Workshop.new]) or similar. All you need to do is provide a symbol or an object that's above the target wrapped in an array. Thanks Ryan for pointing this out.


I guess this means we've finally hit the big time. Not that I'm apart of the team, but I've been following this project for quite some time now and its good to see it mentioned here by Ryan.


Has anyone else noticed that http://guides.rubyonrails.org/initialization.html isn't in the guides index? Would've been helpful to have that link a year ago!