Skip to content

Instantly share code, notes, and snippets.

@joshrendek
Created July 12, 2009 01:25
Show Gist options
  • Save joshrendek/145474 to your computer and use it in GitHub Desktop.
Save joshrendek/145474 to your computer and use it in GitHub Desktop.
class SignupController < ApplicationController
layout "signup"
def index
require "digest"
if request.post?
@user = User.create(:email => params[:signup][:email], :username => params[:signup][:username], :password => Digest::SHA1.hexdigest(params[:signup][:password]))
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment