[Ruby] new_#{controller}_path

Dave Myron dave.myron at contentfree.com
Mon Feb 19 11:36:24 PST 2007


"new_#{controller}_path" gives me, as you would imagine:

http://mysite.com/new_orders_path
http://mysite.com/new_subscriptions_path
and so on

how do make a named path do this?

===================

What exactly are you trying to get? Are you trying to call the named route
new_<controller>_path? If so try, send("new_#{controller}_path") or whatnot.

Dave



More information about the Ruby mailing list