search for: uploads_controller

Displaying 2 results from an estimated 2 matches for "uploads_controller".

Did you mean: upload_controller
2011 Feb 18
1
why 'Template missing' error with form_tag?
...<% form_tag ({:action => ''process_file''}, :multipart => true) do %> <%= file_field_tag ''file'' %> <p> <%= submit_tag "Upload" %> </p> <% end %> Here is my controller, (in /controllers/uploads_controller.rb) def process_file post = Upload.import(params[:file]) flash[:ok] = "data imported" redirect_to :action => index end and here is my model (in models/upload.rb): def self.import(file) FasterCSV.foreach(file.path,:headers=>"first_row", :col_sep=>&...
2008 Apr 09
5
intermittent BJ errors
...command'' /usr/local/lib/ruby/gems/1.8/gems/bj-1.0.1/lib/bj/runner.rb:107:in `start'' /usr/local/lib/ruby/gems/1.8/gems/bj-1.0.1/lib/bj/runner.rb:62:in `tickle'' /usr/local/lib/ruby/gems/1.8/gems/bj-1.0.1/lib/bj/api.rb:66:in `submit'' /app/controllers/uploads_controller.rb:7:in `create'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:1158:in `send'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/ action_controller/base.rb:1158:in `perform_action_without_filters'' /usr/local/lib/ruby/gem...