[新增]图片显示出现异常
Reported by yuanyi | 2009-09-08 10:36:12 UTC | in 1.0.0
异常地址: http://www.1kg.org/photos/3758
异常信息:
A ActionView::TemplateError occurred in photos#show:
user_url failed to generate from {:action=>"show", :controller=>"users", :id=>nil}, expected: {:action=>"show", :controller=>"users"}, diff: {:id=>nil}
On line #11 of app/views/photos/show.html.erb
8: <div class="boxInner">
9: <h3></h3>
10: <div class="metadata">
11: <div class="avatar"><%= link_to avatar_for(@photo.user, "large"), user_url(@photo.user) %></div>
12: <p>
13: <%= link_to @photo.user.login, user_url(@photo.user) %> 上传于 <%= @photo.created_at.to_date %>
14: <% if @photo.edited_by current_user -%>
Comments and changes to this ticket
-

yuanyi 2009-09-10 14:11:19 UTC
- State changed from new to resolved
- Assigned user set to yuanyi
如果照片没有用户,默认显示为多背一公斤上传
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »