when i studied the tutorial about layouts & content_for from railscast.I
need a clarification as per their tutorial.
<!- projects/index.rhtml ->
<% content_for :head do %> <= stylesheet_link_tag ‘projects’ %>
< end %>
<!- layouts/application.rhtml ->
<head> <title>Todo List</title> <%= stylesheet_link_tag ‘application’ %>
<%= yield :head %>
As per the tutorial they are calling the yiel:head & content_for :head
has been written in index.html.erb.
My question is if i want to call another yield such as yield :footer and
if i write content_for :footer in some other file like footer.html.erb.
Then in my layout yield :footer is not taking.
Please give me some suggestions regarding this
Thanks in advance