# ApplicationHelper in engine?

**URL:** <https://www.ruby-forum.com/t/applicationhelper-in-engine/175489>\
**Category:** Engines Development\
**Created:** [September 14, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/applicationhelper-in-engine/175489 "2009-09-14T18:22:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [September 14, 2009, 6:22pm UTC](https://www.ruby-forum.com/t/applicationhelper-in-engine/175489/1 "2009-09-14T18:22:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jrochkind](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/779978/32.png) [@jrochkind](https://www.ruby-forum.com/u/jrochkind)\
**Post date:** [October 1, 2012, 5:10pm UTC](https://www.ruby-forum.com/t/applicationhelper-in-engine/175489/2 "2012-10-01T17:10:17Z")

</div>

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. 😉
