# File app/controllers/devise_auth/registrations_controller.rb, line 12
12: def create
13: build_resource
14:
15: if resource.save
16: if resource.active_for_authentication?
17: set_flash_message :notice, :signed_up if is_navigational_format?
18: sign_in(resource_name, resource)
19: redirect_to user_path(resource)
20: else
21: set_flash_message :notice, :inactive_signed_up, :reason => resource.inactive_message.to_s if is_navigational_format?
22: expire_session_data_after_sign_in!
23: redirect_to user_path(resource)
24: end
25: else
26: clean_up_passwords(resource)
27: respond_with_navigational(resource) { render :partial => "devise/registrations/new" }
28: end
29: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.