Class: ClientLogin::ContactsController
- Inherits:
-
BaseController
- Object
- BaseController
- ClientLogin::ContactsController
show all
- Includes:
- ControllerMixins::Contacts
- Defined in:
- app/controllers/client_login/contacts_controller.rb
Instance Method Summary
collapse
#create!, #destroy!, #update!
Instance Method Details
#create ⇒ Object
33
34
35
|
# File 'app/controllers/client_login/contacts_controller.rb', line 33
def create
create!(:client_login_client_contact_path)
end
|
#destroy ⇒ Object
44
45
46
|
# File 'app/controllers/client_login/contacts_controller.rb', line 44
def destroy
destroy!(:client_login_client_contacts_path)
end
|
#edit ⇒ Object
41
42
|
# File 'app/controllers/client_login/contacts_controller.rb', line 41
def edit
end
|
#index ⇒ Object
22
23
24
|
# File 'app/controllers/client_login/contacts_controller.rb', line 22
def index
@contacts = @client.contacts.all
end
|
#new ⇒ Object
29
30
31
|
# File 'app/controllers/client_login/contacts_controller.rb', line 29
def new
@contact = Contact.new(params[:contact])
end
|
#show ⇒ Object
26
27
|
# File 'app/controllers/client_login/contacts_controller.rb', line 26
def show
end
|
#update ⇒ Object
37
38
39
|
# File 'app/controllers/client_login/contacts_controller.rb', line 37
def update
update!(:client_login_client_contact_path)
end
|