Class: Admin::LeadsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/leads_controller.rb

Overview

Copyright (c) 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php

Instance Method Summary collapse

Instance Method Details

#importObject

POST /admin/leads/import



18
19
20
21
22
23
24
25
26
# File 'app/controllers/admin/leads_controller.rb', line 18

def import
  if params[:file].nil?
    flash[:error] = t(:msg_no_file_chosen)
    redirect_to admin_leads_path and return
  end

  import_leads(params[:file])
  redirect_to admin_leads_path
end

#indexObject

GET /admin/leads



13
14
# File 'app/controllers/admin/leads_controller.rb', line 13

def index
end