create a custom root in ruby on rails -


i have resource called bus_companies

resources :bus_companies 

this generates url bus_companies/, bus_companies/show, etc. need url companies/, companies/show, etc. , don't want change name of controller companies

put in config/routes.rb file

resources :bus_companies, path: "companies" 

you can read more here


Comments

Popular posts from this blog

Prolog - Listing -

python - More Issues with overlapping labels in Tkinter -

python - can't seem to get an output from my class -