Created
September 17, 2014 15:27
-
-
Save vinhnglx/8d2dc200b98184d63bf0 to your computer and use it in GitHub Desktop.
Easily switch user without login, logout ref: http://qiita.com/vinhnguyenleasnet/items/1d5061b443173da967bc
This file contains hidden or 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
gem "switch_user |
This file contains hidden or 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
SwitchUser::Application.routes.draw do | |
match 'switch_user' => 'switch_user#set_current_user' | |
end |
This file contains hidden or 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
= switch_user_select |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment