I'm trying with chapter 7 in RailsTutorial and have code in user_controller:
def new @user = User.new end
def create @user = User.new(params[:user]) if @user.save redirect_to root_url, :notice => "Signed up!" else render "new" end end
if I remove 'create' method and Running App then have error :
The action 'create' could not be found for UsersController I don't know why have to 'create' method'? and how to fix this problem if not using 'create' method. Thanks....