Displaying 1 result from an estimated 1 matches for "importroute".
Did you mean:
import_route
2012 Nov 07
0
redirect from a collection_action to another class
Hi! I''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)*...