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
when you first run it in a development environment, the page http://localhost:3000/teams loads.
if you haven't bothered to run rake db:seed, then it gives you the option to click "There are no teams yet. Maybe create your own?" it takes you to http://localhost:3000/teams/new, but i think it should fail gracefully and notify the user that they need to login first if they haven't already and redirect them to login.
at the moment if they haven't logged in it shows error Pundit::NotAuthorizedError at /teams/new crashing on line 11 in app/controllers/hacking_teams_controller.rb
The text was updated successfully, but these errors were encountered:
ltfschoen
changed the title
Should redirect to login if try to create team when not yet authorized yet
Should redirect to login if try to create team if no teams and when not yet authorized yet
Aug 17, 2024
when you first run it in a development environment, the page http://localhost:3000/teams loads.
if you haven't bothered to run
rake db:seed
, then it gives you the option to click "There are no teams yet. Maybe create your own?" it takes you to http://localhost:3000/teams/new, but i think it should fail gracefully and notify the user that they need to login first if they haven't already and redirect them to login.at the moment if they haven't logged in it shows error
Pundit::NotAuthorizedError at /teams/new
crashing on line 11 in app/controllers/hacking_teams_controller.rbThe text was updated successfully, but these errors were encountered: