Class: ClientLogin::ContactsController

Inherits:
BaseController
  • Object
show all
Includes:
ControllerMixins::Contacts
Defined in:
app/controllers/client_login/contacts_controller.rb

Instance Method Summary collapse

Methods included from ControllerMixins::Contacts

#create!, #destroy!, #update!

Instance Method Details

#createObject



33
34
35
# File 'app/controllers/client_login/contacts_controller.rb', line 33

def create
  create!(:client_login_client_contact_path)
end

#destroyObject



44
45
46
# File 'app/controllers/client_login/contacts_controller.rb', line 44

def destroy
  destroy!(:client_login_client_contacts_path)
end

#editObject



41
42
# File 'app/controllers/client_login/contacts_controller.rb', line 41

def edit
end

#indexObject



22
23
24
# File 'app/controllers/client_login/contacts_controller.rb', line 22

def index
  @contacts = @client.contacts.all
end

#newObject



29
30
31
# File 'app/controllers/client_login/contacts_controller.rb', line 29

def new
  @contact = Contact.new(params[:contact])
end

#showObject



26
27
# File 'app/controllers/client_login/contacts_controller.rb', line 26

def show
end

#updateObject



37
38
39
# File 'app/controllers/client_login/contacts_controller.rb', line 37

def update
  update!(:client_login_client_contact_path)
end