-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoMethodError in MembersController#create undefined method `role_ids' for nil:NilClass #25
Comments
Are those defined? Each of those constants corresponds to a role in the B On Sun, Sep 4, 2011 at 2:52 PM, michaelward82 <
|
In Load the user that was created by membership registration
It seems to me that current_user isn't being set. |
I have found that modifying the At the moment I don't understand how this controller can function correctly without this modification. Is something going wrong in my setup?
|
I'd like to add you to my professional network on LinkedIn.
Brian Kierstead Confirm that you know Brian Kierstead: You are receiving Invitation to Connect emails. Click to unsubscribe: (c) 2011 LinkedIn Corporation. 2029 Stierlin Ct, Mountain View, CA 94043, USA. |
I'm receiving this error after member registration.
I believe it is related to the
redirect_to(is_admin? ? admin_memberships_path : root_path )
call tois_admin?
that fails when calling!(current_user.role_ids & [REFINERY_ROLE_ID, SUPERUSER_ROLE_ID]).empty?
Any advice on how to overcome this?
The text was updated successfully, but these errors were encountered: