On Sat, Jan 13, 2018 at 4:18 PM, Robert Phillips
<robert.phillip...@gmail.com> wrote:

> So, what it is doing is rails is taking its own template then it dumps my 
> template into its <body></body>

Yep, that's the way it works, though "template" is the wrong word.

This: http://guides.rubyonrails.org/layouts_and_rendering.html
may help.

If you want something within the scope of a layout like a title to be
dynamic you can assign the value in your controller and pass it in
as a variable, e.g.  <title>@title</title>

HTH!
-- 
Hassan Schroeder ------------------------ hassan.schroe...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yB%3D3t5QHx6%3DM%3DTNkbv%2BKosncQazO-p3UQ_tMFo_opC2qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to