How is it possible to use hyphen in resources urls?
For example: /my-model/ or /my-model/1.
If I define route as resources :"my-model" I get syntax error because rails generates method def hash_for_my-models_url(options = nil).
How is it possible to use hyphen in resources urls? For example: /my-model/ or
Share
I have found the solution:
UPDATE:
As Timo Saloranta said in comment it works without
:controller => :my_modelsin latest Rails 3 versions.