Initial commit with devise template from https://github.com/lewagon/rails-templates

This commit is contained in:
Beatrice Olivera
2018-08-27 15:37:06 +01:00
commit ebd896cd31
131 changed files with 9104 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
before_action :authenticate_user!
end

View File

View File

@@ -0,0 +1,6 @@
class PagesController < ApplicationController
skip_before_action :authenticate_user!, only: [:home]
def home
end
end