Class: Admin::LeadsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::LeadsController
- Defined in:
- app/controllers/admin/leads_controller.rb
Overview
Copyright © 2008-2013 Michael Dvorkin and contributors.
Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php
Instance Method Summary collapse
-
#import ⇒ Object
POST /admin/leads/import —————————————————————————-.
-
#index ⇒ Object
GET /admin/leads —————————————————————————-.
Instance Method Details
#import ⇒ Object
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 |
#index ⇒ Object
GET /admin/leads
13 14 |
# File 'app/controllers/admin/leads_controller.rb', line 13 def index end |