Closed jordanlewiz closed 8 years ago
:100:
@lukearndt how does one go about changing the route of a Guide?
We have a whole different domain, but say we had just http://envato.com what would the URL be?
When you mount the gem in your routes file, you can specify a route to mount it to. If you want it mounted at the root of your application, you'd use:
mount Guide::Engine => "/"
Or if you want it at, say, /guide/
, you could use:
mount Guide::Engine => '/guide/'
Any routes defined by the Guide gem will be prefixed with the path you specify when you mount it.
These instructions are very primitive but the main goal is trying to organise the structure for the instructions.
This readme will be an evolving document, but this is a starting point. Please feel free to update instructions and examples as you notice they are wrong, missing or out-of-date.