E
E
eldar_web2016-04-13 13:48:09
Ruby on Rails
eldar_web, 2016-04-13 13:48:09

How to change the contents of the title tag depending on the pages in a Ruby on Rails project?

The main layout is in /layouts, and individual pages are in other folders.
How to change the content of the tag titledepending on the pages?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fahrenhe17, 2016-04-13
@eldar_web

Have a look here
https://www.railstutorial.org/book/static_pages#se...
If the anchor doesn't open:
Chapter 3, section 3.4.3
After - this can be put into the haelper (described in the next chapter of the book)

E
Evgeny Danilov, 2016-04-21
@jmelkor

gem metamagic or similar.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question