search for: aaccount_import

Displaying 1 result from an estimated 1 matches for "aaccount_import".

2008 May 01
1
Strategy for importing temporary .csv file?
...class => "csv-input" -%></ p> <p><strong><label for="file">File to Upload</label></strong></p> <p><%= submit_tag -%></p> Here''s my controller code: class ImportController < ApplicationController def aaccount_import @owner = Owner.find(2) n = 0 unless params[:file].nil? fullpath = File.expand_path(params[:file]) # this doesn''t blow up but some books say that a file object is passed and thus File methods should apply? FasterCSV.foreach("#{RAILS_ROOT}/convert/#{params[:file]}")...