Jan
08
2008
Testing Named Routes in the Rails Console
Posted by: Stuart in Programming, tags: console, Rails, routing, RubyI finally found out how to do this, from the Rails Routing shortcut by David Black. In the Rails console, do this:
include ActionController::UrlWriter default_url_options[:host] = 'whatever'
Then you can call your named route methods directly from the console.
Entries (RSS)
Interesting…but as a side note, I just noticed that the pdf you referenced has been included in The Rails Way book. Just some info for anyone considering purchasing that pdf like I did.
Thank you very much, just what I was looking for!
Exactly what I needed, thanks!
Big thanks
Just what i was looking for, thanks :)
Thank you kindly.