I am relatively new to RoR and Ruby for that matter. A few questions
for the pros:
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?
Links are often of the form :action => ‘some_action’ However, I have
also seen :action => :some_action Which form is preferred? Why does
this work? How are they different?
Links often contain a link to an object. :id => @object which is
really short for :id => @object.id. How is that conversion able to take
place. Which form is preferred? Is it more efficient to write it out?
That’s all I can think of for now.