Created
April 28, 2012 07:43
-
-
Save arvindravi/2516938 to your computer and use it in GitHub Desktop.
Twit - UsersController
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 UsersController < ApplicationController | |
def new | |
@user = User.new | |
end | |
def create | |
@user = User.create(params[:user]) | |
redirect '/home' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment