Defect #10077
Error al intentar ver un usuario.
| Status: | New | Start date: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | - | % Done: | 0% | |
| Category: | Accounts / authentication | |||
| Target version: | - | |||
| Affected version: | 1.1.0 | Resolution: |
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
History
#1 Updated by Anderson Alvarez 11 months ago
Simplemente corrà el comando rake db:migrate RAILS_ENV="production" y se corrigió todo.
#2 Updated by Etienne Massip 11 months ago
Please write in English (see SubmittingBugs).