Displaying 2 results from an estimated 2 matches for "status_race".
2012 Nov 12
1
undefined method `original_filename' for nil:NilClass
Hi, although 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 :contac...
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"*
*...