Rails controller names with dashes instead of underscores Rails controller names with dashes instead of underscores ruby-on-rails ruby-on-rails

Rails controller names with dashes instead of underscores


In your route.rb

resources "contact-methods", :controller => :contact_methods, :as => :contact_methods

Edit: You have to specify the :as => ... path or else ActionDispatch throws a fit...