Is there a good way to render a different view based on a models
attributes? For instance, say there is a model called Form, which
belongs to an Office. And there are 2 offices, say Pre and Post, each
one using a different view, or sharing a view. So say we have the views
So each office has a specific show view, but share a comments view.
Rather than code something that chooses which view to use inside each
action, I’d like that to be done automatically. So say at a later date
I decide to split the comments view separately for each office, I can
just add a new view for each office and it picks the correct one.
Thanks for any help!