Class: E9Crm::LeadsController

Inherits:
ApplicationController
  • Object
show all
Includes:
E9::Controllers::CheckboxCaptcha, E9Rails::Helpers::ResourceErrorMessages, 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?)



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

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