class EntryImportsController

Public Instance Methods

create() click to toggle source
# File app/controllers/entry_imports_controller.rb, line 7
def create
  @entry_import = EntryImport.new(params[:entry_import])
  if @entry_import.save
    @entry_import.process_import
    redirect_to entries_path, :notice => "Yay. Imported!"
  else
    render :new
  end
end
new() click to toggle source
# File app/controllers/entry_imports_controller.rb, line 3
def new
  @entry_import = EntryImport.new
end