Skip to content

Instantly share code, notes, and snippets.

@eileencodes
Created January 25, 2012 22:18
Show Gist options
  • Save eileencodes/1679217 to your computer and use it in GitHub Desktop.
Save eileencodes/1679217 to your computer and use it in GitHub Desktop.
class PasswordResetsController < ApplicationController
# 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