Skip to content

Instantly share code, notes, and snippets.

@lance
Created May 29, 2009 15:14
Show Gist options
  • Save lance/119998 to your computer and use it in GitHub Desktop.
Save lance/119998 to your computer and use it in GitHub Desktop.
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