On Monday 30 August 2010, richardsugg wrote:
> I think you are having the same problem as I at
> http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/
> b2ff5ff2b9e009d7 . I bet your helper is getting included twice.
I'm not sure. I'm *never* including it explicitly. As it is a helper, it
is loaded automatically.
However, there is one special thing. I'm defining the helper in question
in an engine and to have it included automatically by helper :all, I add
the path engine helper path in an initializer block of the engine
initializer 'make MyEngine helpers automatically loadable',
:before => "action_controller.set_configs" do |app|
paths.app.helpers.each do |path|
app.paths.app.helpers << path
end
end
and unfortunately, that in some way appears to cause the warning.
Michael
--
Michael Schuerig
mailto:michael@schuerig.de
http://www.schuerig.de/michael/
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment