Reputation: 369
I have a one page site and the controller is called 'home'. The home page is rendered from the show action. I also have a slug column in the database record called 'home'.
I need to change root route so instead of www.example.com/home/1 it should be www.example.com
Can friendly_id handle this? Is there a better approach?
Upvotes: 0
Views: 58