Shared partial and controller helper

Hi all,

I have a shared partial that calls a helper function render_foo.

I also have render_foo defined in Control1Helper and Control2Helper
(each slightly different)

However, rails seems to only use the render_foo version in
Controller1Helper even when I am responding from Controller2.

Is this a correct behavior?



By default on rails 2.0 you'll get helper :all in your application.rb
So all helpers get loaded up into all views in all controllers, if 2 of those modules end up defining a function with the same name then 1 of those will win, and it will be the same thing for all controllers. You can get back the pre rails 2 behaviour by removing the helper :all


Thanks, Fred...that fixes it.