Class: FreeQuoteController

Inherits:
ApplicationController show all
Defined in:
app/controllers/free_quote_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

caches_page_with_cache_marker, #raise_not_found!

Instance Method Details

#createObject



11
12
13
14
15
16
# File 'app/controllers/free_quote_controller.rb', line 11

def create
  @form = FreeQuoteForm.new(params[:free_quote])
  @form.submit

  respond_with(@form, location: free_quote_success_path)
end

#newObject



9
# File 'app/controllers/free_quote_controller.rb', line 9

def new; end

#successObject



18
# File 'app/controllers/free_quote_controller.rb', line 18

def success; end