ruby on rails - CSV import - with confirmation - standard solution/gem? -
in application wish allow user upload csv file , presented view of data mapped columns user can confirm data correct. ideally allowing them edit incorrect data.
are there existing solutions via gem, other standard solution or resources might want achieve.
help appreciated.
you can like:
require 'csv' file_content = file.read(params[:file].tempfile.path) csv = csv.parse(file_content, :headers => true) file.unlink(params[:file].tempfile.path)
depends on params passed controller, cvs can parse file written tmp dir if uploaded, presentation of result view layer
Comments
Post a Comment