Take the 2-minute tour ×

I am new to Rails and I am trying to understand it. One thing that mistifies me the urls that rails can generate. For example, if I have a user controller which is labelled as a :resource in my routes file. It generates all kinds of urls such as user_path or edit_user_path.

Where can I learn more about these urls that it is generating, how it is doing it and what all the urls, that is does generate, are available to me.

share|improve this question
RailsGuides: guides.rubyonrails.org/routing.html –  aromero Apr 22 '12 at 18:30
Lol, 1 minute and three links to the exact same guide. Google is your friend Josh :) Look to the Rails Guide for all kinds of goodness. –  Andrew Apr 22 '12 at 18:32
Don't forget this: railscasts.com/episodes/203-routing-in-rails-3 :) –  Nobita Apr 22 '12 at 18:48
add comment

2 Answers

up vote 3 down vote accepted

"Rails Routing from the Outside In" Guide is your friend ;)

share|improve this answer
add comment

See the Rails Guide: http://guides.rubyonrails.org/routing.html

That pretty much explains everything about this.

share|improve this answer
add comment

Your Answer


