Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationController < ActionController::Base
- protect_from_forgery with: :exception
- # Insira esta linha
- before_action :authenticate_user!
- end
- class HomeController < ApplicationController
- # Insira esta linha
- skip_before_action :authenticate_user!
- def index
- end
- end
Add Comment
Please, Sign In to add comment