Forum: Rails Engines development ApplicationHelper in engine?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0f50b9a2ad85666d537d39bda49327ee?d=identicon&s=25 Jonathan Rochkind (jrochkind)
on 2009-09-14 18:22
(Received via mailing list)
So if I understand things right, my Engine plug-in can have a helper in
it. And my app can provide a helper by the same name, and the two
helpers will be merged together, any conflicting method names my app's
helper with the same name will take precedence.

Is there a reason this wouldn't work for an ApplicationHelper in
application_helper.rb ?

My engine provides an ApplicationHelper. That works fine as long as the
app using it has no ApplicationHelper. But if the containing app does
have an ApplicationHelper, they are NOT merged together, but instead
only the containing app's ApplicationHelper is used, everything in the
Engine's ApplicationHelper is lost and unavailable.

Can anyone shed some light on this?

Fc582698581884352e745d1d4c64699d?d=identicon&s=25 Joshua Muheim (josh)
on 2012-10-01 17:10
I know that this topic is very old, but the question asked still seems
to be the case. Anybody got more infos on this? I'm using Rails 3.2 and
created an engine using `rails plugin new my_engine --full`. Every
helper seems to be loaded into the application (whether they are in
their own namespace or not), but not the application_helper.rb file.
There has to be a reason for this. ;-)
This topic is locked and can not be replied to.