Skip to content

Commit

Permalink
add a flash error when adding tags and not logged in (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesswairimu authored and jywarren committed Apr 2, 2019
1 parent aa23206 commit 784bfbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/tags_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def create

redirect_to "/maps/" + @map.slug
else
flash[:error] = "You must be logged in to add tags"
redirect_to "/login?back_to=/maps/" + @map.slug
end
end
Expand Down

0 comments on commit 784bfbc

Please sign in to comment.