Rails engines extending functionality

Posted by sinsiliux on Stack Overflow See other posts from Stack Overflow or by sinsiliux
Published on 2010-06-03T07:37:15Z Indexed on 2010/06/03 10:54 UTC
Read the original article Hit count: 265

Filed under:
|
|

So I have an engine which defines some models and controllers. I want to be able to extend functionality of some models/controllers in my application (eg. adding methods) without loosing the original model/controller functionality from engine. Everywhere I read that you simply need to define controller with the same name in your application and Rails will automatically merge them, however it doesn't work for me and controller in engine is simply ignored (I don't think it's even loaded).

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby