I have a controller called store_controller, and views for store.
But the store doesn’t have the model, but I want to use store_path in the code. How can I add the store_path in routes.rb?
I have a controller called store_controller, and views for store. But the store doesn’t
Share
If you have only one store (without ID) then you can create only a single route (named
storeso you can usestore_path):You can also just create a custom route: