Project

General

Profile

Updated to last trunk version 2888

Added by Stamu Stamu over 15 years ago

Hello
I've updated to last version, all things work fine except "project/settings". When I open this page i got error

 NoMethodError in Projects#settings
Showing app/views/projects/settings/_members.rhtml where line #27 raised:
undefined method `inherited_from' for #<MemberRole id: 62, member_id: 50, role_id: 6>

Extracted source (around line #27):

24: :html => { :id => "member-#{member.id}-roles-form", :style => 'display:none;' }) do |f| %>
25:       <p><% roles.each do |role| %>
26:       <label><%= check_box_tag 'member[role_ids][]', role.id, member.roles.include?(role),
27: :disabled => member.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br />
28:         <% end %></p>
29:         <%= hidden_field_tag 'member[role_ids][]', '' %>
30:         <p><%= submit_tag l(:button_change), :class => "small" %>

How I can fix it ?


Replies (1)

RE: Updated to last trunk version 2888 - Added by Adrian Cherry over 15 years ago

Hi,

Did you remember step 4 in the upgrade? Update the database

I've seen this before when I've forgotten the step:

rake db:migrate RAILS_ENV="production"

HTH

Adrian

    (1-1/1)