KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am working on a RoR application and I am working on writing the blog component. I am planning to have a layout file that will display all of the tags from the database on each page within blog component. I know how to create and use a different layout file other than application.html.erb, but what I don't know is how to read the tags list from the database for each action in the various controllers. I would not like to create the appropriate instance variable within each action. What is an appropriate way to approach this?
Tags (comma-separated)
Save Edits
Cancel