tencet tencet - 11 months ago 52
Ruby Question

Change url of controller

I have the controller tencet and the method index.



I want change url of this page to


How can I do it?

Answer Source

Assuming site is your domain and not a namespace...

In your config/routes.rb file:

get '/admin', to: 'tencet#index'
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download