ruby on rails - Error 500 with Devise & User Profile -


so have project uses devise , fine until implemented email confirmation. when user signs up, locked out of account until confirm email. fine; however, user profile not viewable until confirm, seems odd/like problem. have 1 user (out of multiples) brings internal 500 error. users have signed , confirmed after 1 there still issue. looking heroku logs, see:

actionview::template::error (undefined method 'each' nil:nilclass):

this makes me think @user not being recognized in system him, odd reason, , cannot figure out problem. i've implemented admin section; however, have not figured out how edit other user information yet, cannot go setup , myself.

if has information, please let me know. code works there problem too. if have information on allowing view profile prior confirmation, appreciate it.

thank =)

joe

in logs looks if you're calling .each method on single user. each used on arrays. var singular. <% user in @user.nearbys(50) %>

you'll need @users = user.all in controller , change

this iterate on array , desired input.


Comments