edited routes to redirect to correct pages upon sign up

This commit is contained in:
Beatrice Olivera
2018-08-28 17:41:10 +01:00
parent f8d05dd449
commit 89976ad750
2 changed files with 13 additions and 1 deletions

View File

@@ -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