Вы должны переопределить Контроллер регистрации (см. Учебники, такие как this )
Затем, глядя на оригинальный код (можно найти здесь ), вам нужно отредактировать create
деталь.
Оригинал :
# POST /resource
def create
build_resource
if resource.save
if resource.active_for_authentication?
set_flash_message :notice, :signed_up if is_navigational_format?
sign_in(resource_name, resource)
respond_with resource, :location => redirect_location(resource_name, resource)
else
set_flash_message :notice, :inactive_signed_up, :reason => resource.inactive_message.to_s if is_navigational_format?
expire_session_data_after_sign_in!
respond_with resource, :location => after_inactive_sign_up_path_for(resource)
end
else
clean_up_passwords(resource)
respond_with_navigational(resource) { render_with_scope :new }
end
end
То, что вы ищете, это удаляя эту строку sign_in(resource_name, resource)
Надеюсь, я правильно понял вашу проблему.