Rails: Using url_for in script/console or irb
Here is how to call url_for
from within script/console
(don't use irb
, use script/console
):
app.url_for
Simple, but took a bit of Googling to find.
References:
Here is how to call url_for
from within script/console
(don't use irb
, use script/console
):
app.url_for
Simple, but took a bit of Googling to find.
References: