Class: UsersController
- Inherits:
-
AccountsController
show all
- Defined in:
- lib/app/controllers/users_controller.rb,
lib/vendor/plugins/inherited_resources/test/base_test.rb
Instance Attribute Summary
#formats
Instance Method Summary
collapse
inherit_resources
included
clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder
Instance Method Details
#create ⇒ Object
13
14
15
16
17
18
19
20
21
|
# File 'lib/app/controllers/users_controller.rb', line 13
def create
create! do |success, failure|
success.html {
PostmanWorker.deliver_welcome_email(@user)
flash[:notice] = "Account registered!"
redirect_back_or_default my_account_url
}
end
end
|
#index ⇒ Object
9
10
11
|
# File 'lib/app/controllers/users_controller.rb', line 9
def index
redirect_to(my_account_url)
end
|
#update ⇒ Object
23
24
25
26
27
28
29
30
|
# File 'lib/app/controllers/users_controller.rb', line 23
def update
update! do |success, failure|
success.html {
flash[:notice] = "Account updated!"
redirect_to my_account_url
}
end
end
|