Topic: Variables on the Layout [SOLVED]

on my Layout  i have 3 variables
<%= page_title  %>
<%= body_id %>
and <%= yield %>

i know that what ever i put on my view shows on the <%= yield %> but how can i set the other 2 variables?

Thanks

Last edited by moiseszaragoza (2012-05-21 14:28:26)

Re: Variables on the Layout [SOLVED]

Thanks for all the help
i found out that you actually need the @sing before the variables

so it should be

on the layout <%= @page_title %>

On the View <% @page_title = "Some Page Title" %>