Skip to content

Instantly share code, notes, and snippets.

@christopherdbull
Created November 14, 2011 01:14
Show Gist options
  • Save christopherdbull/1363012 to your computer and use it in GitHub Desktop.
Save christopherdbull/1363012 to your computer and use it in GitHub Desktop.
class RegistrationsController < Devise::RegistrationsController
def new
if params[:bp].present?
puts "why"
@user = User.find_by_lbp_number(params[:bp])
else
@user = User.new
puts "this shouldn't be here"
end
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment