Created
January 15, 2010 19:21
-
-
Save ethangunderson/278321 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
def edit | |
return redirect_to new_user_session_path unless user_signed_in? | |
return redirect_to dashboard_path unless current_user.login == params[:id] | |
@user = current_user | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment