app/views/subjects/show.html.erb in enju_subject-0.1.0.pre25 vs app/views/subjects/show.html.erb in enju_subject-0.1.0.pre26
- old
+ new
@@ -1,7 +1,7 @@
<div id="content_detail" class="ui-corner-all ui-widget-content">
-<h1 class="title"><%= t('page.showing', :model => t('activerecord.models.subject')) -%></h1>
+<h1 class="title"><%= t('page.showing', model: t('activerecord.models.subject')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>
<h2 class="resource_title">
[S]
@@ -30,9 +30,9 @@
<li><%= back_to_index(flash[:page_info]) -%></li>
<% if can? :update, @subject %>
<li><%= link_to t('page.edit'), edit_subject_path(@subject) -%></li>
<% end %>
<% if can? :delete, @subject %>
- <li><%= link_to t('page.destroy'), subject_path(@subject), :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%></li>
+ <li><%= link_to t('page.destroy'), subject_path(@subject), data: {confirm: t('page.are_you_sure')}, method: :delete -%></li>
<% end %>
</ul>
</div>