Displaying 1 result from an estimated 1 matches for "csv_import".
Did you mean:
csv_export
2011 May 19
3
Cookie Overflow at CSV import
...9;'t know how to do
that.
I have the following in my controller:
file = params[:file]
CSV.new(file.tempfile, {:headers => false, :col_sep => ";"}).each
do |row|
@list << row[1]
end
end
and this in my view:
<%=form_tag ''/importcsv/csv_import'', :multipart => true do%>
<%= file_field_tag "file" %><br/>
<%= submit_tag("Import") %>
<% end %>
Cheers,
Sebastian
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
T...