<%= yield %>

What does <%= yield %> mean that someone can find in the .html.erb file
in the “layouts” directory? Is it just rendering the data to show up on
the page?

Thanks.

On 18 July 2010 09:36, Abder-Rahman A. [email protected] wrote:

What does <%= yield %> mean that someone can find in the .html.erb file
in the “layouts” directory? Is it just rendering the data to show up on
the page?

Have a look at the Rails Guide on Layouts and Rendering at
http://guides.rubyonrails.org/. It should explain it. If you have
not already done so have a look at the other guides as well.

Colin

Colin L. wrote:

On 18 July 2010 09:36, Abder-Rahman A. [email protected] wrote:

What does <%= yield %> mean that someone can find in the .html.erb file
in the “layouts” directory? Is it just rendering the data to show up on
the page?

Have a look at the Rails Guide on Layouts and Rendering at
http://guides.rubyonrails.org/. It should explain it. If you have
not already done so have a look at the other guides as well.

Colin

Thanks Colin.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs