mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-01 18:34:27 -04:00
Redirect :back deprecated. updating follows controller
This commit is contained in:
1 parent
59cca1b8cb
commit
af0c9a490b
1 file changed
+2
-2
@@ -9,10 +9,10 @@ class FollowsController < ApplicationController
|
||||
|
||||
if @follow.save
|
||||
flash[:notice] = "Followed #{@follow.followed.login_name}"
|
||||
redirect_to :back
|
||||
redirect_back fallback_location: root_path
|
||||
else
|
||||
flash[:error] = "Already following or error while following."
|
||||
redirect_to :back
|
||||
redirect_back fallback_location: root_path
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user