Is there something different that has to be done in order to use helper modules in namespaced controllers? I have some custom helpers in app/helpers/*_helper.rb that work great in controllers in app/controllers but not in app/controllers/admin In my application.rb is the line helper :all and the namespaced controllers are descended from ApplicationController, but when I reference one of the helper methods, I get method undefined errors. This is Rails 2.0.2. Peace, Phillip -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Never mind. It was a scope problem. I failed to notice that when I used these helpers in other controllers, it was in the context of a render :update block, which, I surmise, put it in the context of a view. I was trying to use the same helper method as an argument to a method that would do the render :update, so the scope was still that of the controller. Phillip -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---