Class: ContactsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ContactsController
show all
- Includes:
- ControllerMixins::Contacts
- Defined in:
- app/controllers/contacts_controller.rb
Instance Method Summary
collapse
#create!, #destroy!, #update!
Instance Method Details
#create ⇒ Object
35
36
37
|
# File 'app/controllers/contacts_controller.rb', line 35
def create
create!(:client_contact_path)
end
|
#destroy ⇒ Object
46
47
48
|
# File 'app/controllers/contacts_controller.rb', line 46
def destroy
destroy!(:client_contacts_path)
end
|
#edit ⇒ Object
43
44
|
# File 'app/controllers/contacts_controller.rb', line 43
def edit
end
|
#index ⇒ Object
24
25
26
|
# File 'app/controllers/contacts_controller.rb', line 24
def index
@contacts = @client.contacts.all
end
|
#new ⇒ Object
31
32
33
|
# File 'app/controllers/contacts_controller.rb', line 31
def new
@contact = Contact.new(params[:contact])
end
|
#show ⇒ Object
28
29
|
# File 'app/controllers/contacts_controller.rb', line 28
def show
end
|
#update ⇒ Object
39
40
41
|
# File 'app/controllers/contacts_controller.rb', line 39
def update
update!(:client_contact_path)
end
|