Created
May 29, 2009 15:14
-
-
Save lance/119998 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
class PasswordKeysController < ApplicationController | |
skip_before_filter :login_required | |
resource_controller | |
actions :new, :create, :show | |
create.response do | |
user = User.find_by_login(params[:login]) unless params[:login].blank? | |
end | |
new_action.response do | |
params[:login] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment