app/views/accepts/show.html.erb in enju_library-0.1.0.pre33 vs app/views/accepts/show.html.erb in enju_library-0.1.0.pre34
- 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.accept')) -%></h1>
+<h1 class="title"><%= t('page.showing', model: t('activerecord.models.accept')) -%></h1>
<div id="content_list">
<p id="notice"><%= notice %></p>
<p>
<strong><%= t('activerecord.models.item') -%>:</strong>
@@ -11,10 +11,10 @@
<% end %>
</p>
<p>
<strong><%= t('activerecord.models.user') -%>:</strong>
- <%= link_to @accept.librarian.username, @accept.librarian if @accept.librarian -%>
+ <%= link_to @accept.librarian.username, @accept.librarian.profile if @accept.librarian.try(:profile) -%>
</p>
<p>
<strong><%= t('page.created_at') -%>:</strong>
<%=l @accept.created_at %>