Ruby on Rails Routes Issue -


i have controller called head_buses_controller.rb , in routes have mapped map.resources :head_buses

this results in urls being http://domain.com/head_buses

i have urls dash - instead of underscore _.

is possible have urls dashes go head_buses controller?

cheers

eef

try use one:

resources :head_buses, :as => 'head-buses' 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -