Created
April 1, 2011 15:41
-
-
Save zxiest/898360 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AuthsController < ApplicationController | |
include AuthsHelper | |
def helloauth | |
flash[:error] = session[:hello] | |
redirect_to root_path | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AuthsHelper | |
def test | |
session[:hello] = "HELLO" | |
redirect_to auth_hello_path | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LocationsController < ApplicationController | |
before_filter :test, :only => [:hello] | |
def hello | |
logger.debug "HELLO GOT EXECUTED" | |
redirect_to root_path | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment