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 -

orchardcms - change base url in local copy in Orchard CMS -

linear regression - Trying to get confidence/prediction intervals with `predict.lm` in R, but I keep getting an error regarding my dichotomous variable -