Class: E9Crm::ContactsController

Inherits:
ResourcesController show all
Includes:
E9Rails::Controllers::Orderable, E9Tags::Controller
Defined in:
app/controllers/e9_crm/contacts_controller.rb

Instance Method Summary collapse

Methods inherited from ResourcesController

defaults

Instance Method Details

#createObject

NOTE for some reason create! { redirect } is trying to redirect on failure



33
34
35
36
37
38
# File 'app/controllers/e9_crm/contacts_controller.rb', line 33

def create
  create! do |success, failure|
    success.html { redirect_to resource_path }
    failure.html { render :new }
  end
end

#templatesObject



28
29
30
# File 'app/controllers/e9_crm/contacts_controller.rb', line 28

def templates
  render RecordAttribute::TEMPLATES
end

#updateObject



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

def update
  update! { resource_path }
end