Class: E9Crm::LeadsController

Inherits:
ApplicationController
  • Object
show all
Includes:
E9Rails::Helpers::ResourceErrorMessages, E9Rails::Helpers::ResourceLinks, E9Rails::Helpers::Title, E9Rails::Helpers::Translation
Defined in:
app/controllers/e9_crm/leads_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject

In the case that this is actually an HTML request, redirect to the offer on success (regardless of what type of offer?)



27
28
29
30
31
32
# File 'app/controllers/e9_crm/leads_controller.rb', line 27

def create
  create!(:flash => false) do |success, failure|
    success.html { redirect_to public_offer_path(@offer) }
    success.js
  end
end