Project

General

Profile

Actions

Defect #10077

closed

Error al intentar ver un usuario.

Added by Anderson Alvarez almost 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

Al hacer click en cualquier usuario, me genera este error:
Showing app/views/users/show.rhtml where line #12 raised:

undefined method `visible?' for #<ActiveRecord::Associations::BelongsToAssociation:0xb00ae14>
Extracted source (around line #12):

9: <%# unless @user.pref.hide_mail >
10: <li><
#=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') ></li>
11: <
# end >
12: <
@user.visible_custom_field_values.each do |custom_value| >
13: <
if !custom_value.value.blank? >
14: <li><
=h custom_value.custom_field.name%>: <%=h show_value(custom_value) ></li>
15: <
end %>
RAILS_ROOT: c:/redmine/aigroup/airedmine

Actions #1

Updated by Anderson Alvarez over 12 years ago

Execute rake db:migrate RAILS_ENV="production" to solve the issue

Actions #2

Updated by Etienne Massip over 12 years ago

Please write in English (see SubmittingBugs).

Actions #3

Updated by Toshi MARUYAMA over 9 years ago

  • Status changed from New to Closed
  • Priority changed from High to Normal
  • Resolution set to No feedback
Actions

Also available in: Atom PDF