Class: RegistrationsController
- Inherits:
-
Devise::RegistrationsController
- Object
- Devise::RegistrationsController
- RegistrationsController
- Defined in:
- lib/generators/templates/app/controllers/registrations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/templates/app/controllers/registrations_controller.rb', line 3 def create super if resource.id.nil? then self.instance_variable_set(:@_response_body, nil) @opened_modal = "#modal-register-form" if params[:path_to_redirect] then redirect_to params[:path_to_redirect] else render "beautiful/dashboard", :layout => "beautiful_layout", :location => root_path end end end |