<%=yield%> works perfectly if my template is called layouts/application.erb. However, if I change the template to something else, then the yield doesn't work. For instance, my controller method is
render :template=>'layouts/survey'
and the right template gets rendered, but its yield method doesn't show the output of the current action's view. What simple thing am I missing? I have also tried
render :action=>"index", :template=>"layouts/survey"
to no avail.