Displaying 1 result from an estimated 1 matches for "content_for_nav".
2006 Jan 23
8
yield vs @content_for_layout, etc..
I am relatively new to RoR and Ruby for that matter.   A few questions 
for the pros:
Question 1:
In the 5min ajax video the presenter uses
<%= yield %> in his layout.
In the agile book, @content_for_layout is used.
Since, yield is an actual Ruby construct, is it more efficient and 
preferred?  What is the difference?
Question 2:
Links are often of the form  :action =>