Skip to content
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

NilClass error: undefined method `new' for nil:NilClass #510

Closed
hfoxy opened this issue Dec 7, 2013 · 4 comments
Closed

NilClass error: undefined method `new' for nil:NilClass #510

hfoxy opened this issue Dec 7, 2013 · 4 comments

Comments

@hfoxy
Copy link

hfoxy commented Dec 7, 2013

I've been setting up my Forem installation with devise, I first had the forem_user error, then I got some error with forem_group_ids. But when I went to report that error; this one came up instead.

Showing /var/www/athena/app/views/forem/categories/_category.html.erb where line #1 raised:

undefined method new' for nil:NilClass`

I have tried this with Rails server and normal Apache, both throw the error.

@radar
Copy link
Collaborator

radar commented Dec 7, 2013

Can you please show us the full stacktrace for this issue?

On Sat, Dec 7, 2013 at 8:50 PM, Harry [email protected] wrote:

I've been setting up my Forem installation with devise, I first had the forem_user error, then I got some error with forem_group_ids. But when I went to report that error; this one came up instead.
Showing /var/www/athena/app/views/forem/categories/_category.html.erb where line #1 raised:
undefined method new' for nil:NilClass`

I have tried this with Rails server and normal Apache, both throw the error.

Reply to this email directly or view it on GitHub:
#510

@hfoxy
Copy link
Author

hfoxy commented Dec 7, 2013

@radar: Here you go http://pastebin.com/rsXnEM1W

@hfoxy
Copy link
Author

hfoxy commented Dec 7, 2013

Oh and I forgot to mention, I am running this on Rails 4 from the rails4 branch

@radar
Copy link
Collaborator

radar commented Dec 10, 2013

Your stacktrace is pointing directly here

I would guess by your error that you do not have Forem.user_class set in config/initializers/forem.rb. Please set it.

@radar radar closed this as completed Dec 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants