views:

162

answers:

2

Say I have a router helper that I want more info on, like blogs_path, how do I find out the map statements behind that in console.

I tried generate and recognize and I got unrecognized method error, even after I did require 'config/routes.rb'

THanks

+2  A: 

running the routes command from your project directory will display your routing:

rake routes

is this what you had in mind?

Pete
rake routes will give all routes. I'm trying for something more specific like .generate and .recognize methods, except for helpers. So if I enter in blogs_path, I should get :action => index, :controller => :blog
Senthil
+1  A: 

found the answer here

bbebop
yes, that works.
Roberto Barros