Class: Zizia::CsvImportsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Zizia::CsvImportsController
- Defined in:
- app/controllers/zizia/csv_imports_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #index ⇒ Object
- #new ⇒ Object
-
#preview ⇒ Object
Validate the CSV file and display errors or warnings to the user.
- #show ⇒ Object
Instance Method Details
#create ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'app/controllers/zizia/csv_imports_controller.rb', line 19 def create @csv_import.user = current_user preserve_cache if @csv_import.save @csv_import.queue_start_job redirect_to @csv_import else render :new end end |
#index ⇒ Object
9 |
# File 'app/controllers/zizia/csv_imports_controller.rb', line 9 def index; end |
#new ⇒ Object
13 |
# File 'app/controllers/zizia/csv_imports_controller.rb', line 13 def new; end |
#preview ⇒ Object
Validate the CSV file and display errors or warnings to the user.
17 |
# File 'app/controllers/zizia/csv_imports_controller.rb', line 17 def preview; end |
#show ⇒ Object
11 |
# File 'app/controllers/zizia/csv_imports_controller.rb', line 11 def show; end |