app/controllers/parsers_controller.rb
# Read file csv and save a new in public/csv, after call model
# Parser to persist the data
Read file csv and save a new in public/csv, after call model
Parser to persist the data
Read file csv and save a new in public / csv after call model Parser to persist the data
def open_file(arquivo)
    File.open(Rails.root.join('public', 'csv', arquivo), 'wb') do |file|
      file.write(document.read)
    end
  end
def open_file ( arquivo ) File . open ( Rails . root . join ( 'public' , 'csv' , arquivo ) , 'wb' ) do | file | file . write ( document . read ) end end
Read file csv and save a new in public/csv, after call model
Parser to persist the data
Read file csv and save a new in public / csv after call model Parser to persist the data
arquivo
<not_specific>