OSDN Git Service

user check
[pettanr/pettanr.git] / app / views / home / index.html.erb
index ea26dcb..26ddf73 100644 (file)
@@ -1,11 +1,12 @@
-<h1><%= h(current_author.name) -%>(<%= h(current_author.email) -%>)</h1>
+<h1><%= h(@author.name) -%>(<%= h(@user.email) -%>)</h1>
 
 <div>
 <p>絵師活動</p>
-<% if current_author.artist? -%>
-  <%= link_to h(current_author.artist.name), current_author.artist %>です
+<% if @author.artist? -%>
+  <%= link_to h(@author.artist.name), @author.artist %>です
 <% else -%>
   <p>まだ絵師登録していません。</p>
   <p>登録する</p>
+    <%= render 'original_pictures/artist_register' %>
 <% end -%>
 </div>