我在 rails 3.2.13 应用程序中有一些标题文本我想根据当前页面或控制器动态更改文本。这是代码。提前致谢。
<% if current_user.present? %>
<div class="container push_down push_left">
<div class="site-samples">
<div class="span2 push_nav">
<h3>Dashboard</h3>
</div>
<div class="span2 push_nav">
<dl class="palette palette-info"><center><%= link_to 'Videos', dashboard_videos_path, :class => 'palette'%></center></dl>
</div>
<div class="span2 push_nav">
<dl class="palette palette-bright-dark"><center><%= link_to 'Statistics', dashboard_statistics_path, :class => 'palette' %></center></dl>
</div>
<div class="span2 push_nav">
<dl class="palette palette-alizarin"><center><%= link_to 'Account', edit_user_registration_path, :class => 'palette' %></center></dl>
</div>
</div>
<% end %>