javinto
unread,Feb 21, 2013, 9:48:27 AM2/21/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
Hi
In my routes I have a
match ":controller/help", :action=>'help' (Rake routes shows: /:controller/help(.:format) :controller#help)
This will add a help action on every controller, including namespaced controllers.
As Rails 4 will not be supporting 'match' anymore I'm converting these routes to get, put, etc. No sweat, except for this route:
get ':controller/help' (Rake routes shows: GET /:controller/help(.:format) :controller#help)
This route does not work on namespaced controllers, like:
namespace :admin do
myController
end
I tried declaring:
namespace :admin do
get ':controller/help'
myController
end
But rake routes is telling me: :controller segment is not allowed within a namespace block
Is there another solution to this?