diff options
author | amurrel <amurrel@purdue.edu> | 2014-06-30 18:12:44 -0400 |
---|---|---|
committer | amurrel <amurrel@purdue.edu> | 2014-06-30 18:12:44 -0400 |
commit | 4975d1c647781d1b132edb0ed7c7613d52adafdc (patch) | |
tree | 9dcc853e7472248b46db29566b784104f781be1f /app | |
parent | 2ff464e00a47e1b0da3ce3bf4f0703f308cd06c5 (diff) |
slightly better
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/users_controller.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index ef94190..78ad0ba 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -28,13 +28,13 @@ class UsersController < ApplicationController # POST /users.json def create @user = User.new(user_params) - #unless (simple_captcha_valid?) - # respond_to do |format| - # format.html { render action: 'new', status: :unprocessable_entity } - # format.json { render json: @user.errors, status: :unprocessable_entity } - # end - # return - #end + unless (true) # simple_captcha_valid?) + respond_to do |format| + format.html { render action: 'new', status: :unprocessable_entity } + format.json { render json: @user.errors, status: :unprocessable_entity } + end + return + end respond_to do |format| if @user.save |