I've run into this a number of times with my application. I tracked it
down to expiring sessions somewhere along the line. I think it might
have something to do with Heroku's dynos spinning down and up. At the
moment, I have something fairly bruteforce in place to handle it while
I work on something else. You'll probably want to use rescue_from in
application_controller:
rescue_from RuntimeError do
flash[:error] = "Your session has become invalid. Please log in again."
session[:shopify] = nil
redirect_to login_url
end
--
Justin Rocha
Xenith || xen...@xenith.org || http://xenith.org/
Jabber: xen...@xenith.org || AIM: JustinR98