<% if @user %>
  <% content_for("subnavbar") do %>
    <li><%= link_to "Add", :action => "create", :user_id => @user.id %></li>
    <li><%= link_to "List for user", :action => "index", :user_id => @user.id %></li>
    <li><%= link_to "List for all", :action => "index", :user_id => nil %></li>
  <% end %>
<% end %>

<% if @user %>
  <% content_for :subnavbar do %>
    <li><%= link_to "Add", :action => "create", :user_id => @user.id %></li>
    <li><%= link_to "List for user", :action => "index", :user_id => @user.id %></li>
    <li><%= link_to "List for all", :action => "index", :user_id => nil %></li>
  <% end %>
<% end %>

Use symbol for content_for instead of string.
Use symbol for content_for instead of string.

--HG--
extra : rebase_source : 15b340c7c1ecb6297fc5d4721c04711b7fb62ca7
