<% if user_signed_in? -%> <% if @author.artist? -%> <%= form_tag( {:controller => 'original_pictures',:action => "create"} , { :multipart => true }) do %> <%= file_field_tag "original_picture[file]" %> <%= submit_tag 'upload' -%> <% end -%> <% else -%> <%= render 'artist_register' %> <% end -%> <% else -%> 素材を投稿するなら<%= link_to "ログイン", new_user_session_path %> <% end -%>