flyerhzm/switch_user

Switch User Select Box = Nil

Closed this issue · 1 comments

Hello,

the switch user Gem works perfectly on my local env. But when I run my application (live) on heroku, the switch_user_select is nil. User.all is not nil. If I try to switch Users, I get a 404 Status back.

my bad: config.view_guard = lambda { |current_user, request| Rails.env.production? } did it!