I'm trying to implement some javascript on a rails page using content_for and yield.
I'm new to rails and learning rails3.
In my applicatoin.html.erb file, I have
<%= yield :javascript %>
and in my index page, i've got
<% content_for :javascript do %>
<%= javascript_tag do %>
alert('test')
<% end %gt;
<% end %>
pretty basic stuff, and yet nothing is showing up in the requested page. Any suggestions?