Class: Zizia::CsvImportsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/zizia/csv_imports_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



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

#indexObject



9
# File 'app/controllers/zizia/csv_imports_controller.rb', line 9

def index; end

#newObject



13
# File 'app/controllers/zizia/csv_imports_controller.rb', line 13

def new; end

#previewObject

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

#showObject



11
# File 'app/controllers/zizia/csv_imports_controller.rb', line 11

def show; end