• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

RoR: Can I put an rhtml template somewhere that every controller can use it?

Brazen

Diamond Member
I tried creating a folder under 'Views' called "application" and put my action.rhtml file in there. I thought (following other Rails conventions) that would do the trick, but I still get an error:

"No such file or directory - ../app/views/controller/action.rhtml"

So it is still looking in the controller directory instead of pulling the rhtml file from the application directory. I can put a copy of the action.rhtml in each controller's view directory, but that does not follow the DRY principle.

Any help?
 
Back
Top