class RegistrationsController
encoding : utf-8
Public Instance Methods
create()
click to toggle source
Calls superclass method
# 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