Saturday, February 19, 2011

[Rails] How to extend controllers of a Rails 3 Engine in the main app?

Hello,
In my Rails 3 app I use an engine having PostsController. I would like to extend it in the main app by adding and altering some methods. I have tried some things which you can see in stackoverflow.com/questions/5045068/ . There I am facing an exception since PostsController has different superclasses in my engine and main app. Do you know how I can fix it? Is it possible to fix without modifying the engine?

Thanks

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate