Reputation: 13942
I have this route:
namespace :my_namespace do
resource :trip do
get 'current' end
end
How to rename namespace 'my_namespace' to 'my-namespace'?
"my_namespace/trip/current" => "my-namespace/trip/current"
Upvotes: 0
Views: 826
Reputation: 107718
Simply change:
namespace :my_namespace do
To:
namespace :"my-namespace" do
You must use quotes as symbols do not support hyphens without quotes.
Upvotes: 2