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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

mysql - How to insert just year and month into date field? -