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?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/t8X1Ni1gTw8J.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to