Skip to content

Instantly share code, notes, and snippets.

@ethangunderson
Created January 15, 2010 19:21
Show Gist options
  • Save ethangunderson/278321 to your computer and use it in GitHub Desktop.
Save ethangunderson/278321 to your computer and use it in GitHub Desktop.
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