- 1 year ago 66
Ruby Question

How to remove /posts/ from URL?

How can I also show a blog post without

in the URL?

Shortened Version (Goal of Question):

I have
as a MVC.


resources :posts

Answer Source

Change your routes.rb to:

resources :posts, path: '/'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download