Created
July 12, 2009 01:25
-
-
Save joshrendek/145474 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 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