Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller with shared views, when using STI #37

Closed
kevwil opened this issue Jan 22, 2010 · 1 comment
Closed

Controller with shared views, when using STI #37

kevwil opened this issue Jan 22, 2010 · 1 comment

Comments

@kevwil
Copy link
Contributor

kevwil commented Jan 22, 2010

If I use STI in my ActiveRecord models, and I have a controller for each model, and my controllers inherit from InheritedResources::Base, I end up having a lot of duplication of code in the views. In a normal controller, I would use "render 'shared/blah'" and use shared view templates in app/views/shared.

How can I do this with the Inherited Resources plugin? My apologies if this is a silly question, I'm quite new at this.

@josevalim
Copy link
Contributor

Please use the mailing list for doubts and questions:

http://groups.google.com/group/inherited_resources

Somewhere there might be able to help you.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants