Reily Bourne
Reily Bourne

Reputation: 5297

Understanding rails generated URLs

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.

Upvotes: 0

Views: 207

Answers (2)

Andrew
Andrew

Reputation: 43113

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

That pretty much explains everything about this.

Upvotes: 3

Related Questions