Class: E9Crm::ContactsController
- Inherits:
-
ResourcesController
- Object
- AdminController
- BaseController
- ResourcesController
- E9Crm::ContactsController
- Includes:
- E9Rails::Controllers::Orderable, E9Tags::Controller
- Defined in:
- app/controllers/e9_crm/contacts_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
NOTE for some reason create! { redirect } is trying to redirect on failure.
- #templates ⇒ Object
- #update ⇒ Object
Methods inherited from ResourcesController
Instance Method Details
#create ⇒ Object
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 |
#templates ⇒ Object
28 29 30 |
# File 'app/controllers/e9_crm/contacts_controller.rb', line 28 def templates render RecordAttribute::TEMPLATES end |
#update ⇒ Object
40 41 42 |
# File 'app/controllers/e9_crm/contacts_controller.rb', line 40 def update update! { resource_path } end |