Home Rails 3 - Customizing resourceful routes
Reply: 0

Rails 3 - Customizing resourceful routes

user704
1#
user704 Published in June 25, 2018, 12:17 am

I have resourceful routes set up for a blog (model name: Article).

I want to customize my resourceful route to point to

articles/show/title-of-my-article

Now I read through this:

http://edgeguides.rubyonrails.org/routing.html#customizing-resourceful-routes

But it didn't seem to explain how to overwrite the params not just the :controller or :action. The thing is I could do a singular resource or match a GET request but I'd like to overwrite my resourceful routes so I can still use all the resource helpers (i.e. article_path(@article.title) ) etc.

Can Anyone help me out here, any and all help is much appreciated!

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.322785 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO