mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 02:42:10 +00:00
edited routes to redirect to correct pages upon sign up
This commit is contained in:
@@ -2,4 +2,8 @@ class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :exception
|
||||
# before_action :authenticate_user!
|
||||
protect_from_forgery unless: -> { request.format.json? } # Only accept json
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
contacts_path
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user