fix Could not find a valid mapping for nil

This commit is contained in:
Alexander Machehin 2014-09-13 09:43:41 +06:00
parent 49cbad5b6e
commit e8e80e91fe
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ class Users::RegistrationsController < Devise::RegistrationsController
def create
# Try stop bots
if params[:recaptcha_response_field].present?
build_resource(sign_up_params)
respond_with(resource, location: after_inactive_sign_up_path_for(resource))
return
end