On Jun 4, 2:07 am, Marius Mårnes Mathiesen
<[email protected]> wrote:
> On 4. juni. 2009, at 06.51, prlawrence wrote:
>
> > Processing MembershipsController#create (for nnn.nn.n.nn at 2009-06-03
> > 23:46:25) [POST]
> >  Parameters: {"user"=>{"login"=>"plawrence"}, "commit"=>"Save
> > changes", "group_id"=>"entapps"}
>
> > NoMethodError (undefined method `[]' for nil:NilClass):
>
> Ah, I think we nailed it now, your database doesn't have any roles  
> defined. I just tried deleting all the roles from my own local install  
> and got the exact same problems that you had.
>
> These roles should have been created when you ran rake db:migrate at  
> some point, but this situation should be quite easy to fix (especially  
> now that I have to do the same thing in my install, having deleted all  
> the roles :-) )
> Fire up script/console and enter:
>
>         Role.create!(:name => "Member", :kind => Role::KIND_MEMBER)
>         Role.create!(:name => "Administrator", :kind => Role::KIND_ADMIN)
>
> You should probably delete the teams and memberships already in your  
> database (if any) as these are probably in a weird state. Inside the  
> console, enter:
>
>         Group.destroy_all
>
> This should let you create teams again.

Success!  Thank you so much for sticking with me this week.

Mange takk!
Phil Lawrence
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to