You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ked developujem, preseedovavam databazu, pri prihlaseni sa rails pokusi najst uzivatela zo sessionu z predosleho obsahu databazy.
ActiveRecord::RecordNotFound (Couldn't find User with 'id'=2):
app/controllers/concerns/authentication.rb:47:in `load_current_user'
def load_current_user
Current.user = User.find(session[:user_id]) if session[:user_id]
Current.tenant = Tenant.find(session[:tenant_id]) if session[:tenant_id]
Current.box = Current.tenant.boxes.find(session[:box_id]) if session[:box_id]
end
Navrhujem dat tam User.find_by(id: session[:user_id]) namiesto User.find(session[:user_id]).
Co si o tom myslite?
The text was updated successfully, but these errors were encountered:
Ked developujem, preseedovavam databazu, pri prihlaseni sa rails pokusi najst uzivatela zo sessionu z predosleho obsahu databazy.
Navrhujem dat tam
User.find_by(id: session[:user_id])
namiestoUser.find(session[:user_id])
.Co si o tom myslite?
The text was updated successfully, but these errors were encountered: