How might I include the output of another ActionController's view in my
current controller?
I'm trying to determine how to keep my controller DRY, and I have what
might be considered a sub view that will be included in many places in the
app.
Is there a typical RoR DRY approach to handling this?
An example, if it helps, might be a "rate this page" type control/view. It
will be included in different types of page controllers, and it doesn't
strike me as an "extension" of the given page controller. Another suitable
example may be a "contact us" form that would be available without a
"dedicated" view.
No comments:
Post a Comment