T
T
tenset2015-03-12 20:10:08
Ruby on Rails
tenset, 2015-03-12 20:10:08

How to change controller url?

I have a tenset controller and it's index
URL method is: site/tencet/index
I want to change the page url to site/admin
How to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Vsk, 2015-03-13
@tenset

Somewhere higher in config/routes.rb
get :admin, to: 'tencet#index'

S
Sergey, 2015-03-12
@mastedm

It's written here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question