Forum: Rails Engines development ApplicationHelper in engine?

Posted by 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?

Jonathan
Posted by 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. ;-)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.