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

Attributes inherited from ActionController::Base

#formats

Instance Method Summary collapse

Methods inherited from InheritedResources::Base

inherit_resources

Methods included from InheritedResources::DSL

included

Methods inherited from ActionController::Base

clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder

Instance Method Details

#createObject



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 
    }
  end
end

#indexObject



9
10
11
# File 'lib/app/controllers/users_controller.rb', line 9

def index
  redirect_to()
end

#updateObject



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 
    }
  end
end