search for: tinga

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

Did you mean: tenga
2012 Nov 07
0
redirect from a collection_action to another class
...39;m new at ruby,I want to redirect from here in app/admin: *collection_action :status_race, :method => :post do* * #Do some import work..* * redirect_to #redirect to import class* * end * To this class 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...