search for: routeimport

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

Did you mean: route_import
2012 Nov 12
1
undefined method `original_filename' for nil:NilClass
...I saw this problem in other blogs, I couldn''t make it works. My view: *<%= semantic_form_for :routes_status_race, :url => status_race_admin_routes_path do |f| %>* * <% contact_array = Contact.all.map {|contact| [contact.name, contact.id]}%>* * <% route_importer_array = RouteImporter.all.map {|importer| [importer.name, importer.id]}%>* * <%= f.inputs do%>* * <%= f.input :contact, :as => :select, :collection => Contact.all %>* * <%= f.input :route_import, :as => :select, :collection => RouteImporter.all %>* * <%= f.input :uploade...
2012 Nov 07
0
redirect from a collection_action to another class
...ss which is in app/lib/route: *class ImportRoute* * def initialize* * #parametres que tinga el fitxer* * end* * def run(filename)* * puts "Running route import file"* * * * raise "File" + filename + "doesn''t not exist" unless File.exist(filename)* * * * ri = RouteImporter.find(:name => self.class.name)* * * * if(ri.nil?)* * puts "Error, file doesn''t exists"* * end* * CSV.foreach(filename, {:col_sep => @seperator}) do |row|* * .* * .* * .* * .* * .* * end* * * I don&...