Skip to content

Instantly share code, notes, and snippets.

Sebastian Velandia ssoulless

Block or report user

Report or block ssoulless

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View application_controller.rb
class ApplicationController < ActionController::Base
before_action :store_location
protect_from_forgery with: :exception
def store_location
# store last url as long as it isn't a /users path
session[:previous_url] = request.referer unless request.fullpath =~ /\/users/
def after_sign_in_path_for(resource)
You can’t perform that action at this time.