Created
April 13, 2012 12:22
-
-
Save edthix/2376586 to your computer and use it in GitHub Desktop.
remove devise sign in layout
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
# apply to application_controller.rb | |
# add to before_filter | |
before_filter ....., :remove_sign_in_layout | |
def remove_sign_in_layout | |
if params[:controller] == 'devise/sessions' | |
render :layout => nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh yeah, forgot to put conditions for actions. Coded in a hurry :D