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



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

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

#templatesObject



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

def templates
  render RecordAttribute::TEMPLATES
end

#updateObject



38
39
40
# File 'app/controllers/e9_crm/contacts_controller.rb', line 38

def update
  update! { resource_path }
end