rubysherpas / forem

The best Rails 3 and Rails 4 forum engine. Ever.
http://forem.herokuapp.com
MIT License
1.55k stars 422 forks source link

Usernames not showing correctly #691

Closed wemmick closed 8 years ago

wemmick commented 8 years ago

I got Forem installed (great work, Ryan!) and it's mostly working properly, but my users' names don't seem to be coming through to the view correctly. They show up as something like "#User:0x007f9944eae748"

My user model is "User" and the name field is "name". Anything else I should be doing here?

wemmick commented 8 years ago

Ah, I see according to http://www.sitepoint.com/forem-rails-forum-engine/ that you need to add this to the user model:

def forem_name
  email
end

I didn't see this mentioned in the installation guide, so y'all might want to update it.

sevenseacat commented 8 years ago

It's listed in the README here: https://github.com/rubysherpas/forem#set-up-helper-methods-in-your-user-model