Created
January 25, 2012 22:18
-
-
Save eileencodes/1679217 to your computer and use it in GitHub Desktop.
class PasswordResetsController < ApplicationController
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
# index and new action in my password resets controller | |
def index | |
if current_user | |
redirect_to account_url | |
else | |
redirect_to '/login' | |
end | |
end | |
def new | |
if current_user | |
redirect_to account_url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment