Get a file's path from a file chooser dialog in Ruby on Rails -
Get a file's path from a file chooser dialog in Ruby on Rails -
i import csv files in application, application needs total path of file. if hard-code file's path in application, works well, want user himself take own file file chooser dialog (like jfilechooser in java). this, path of selected file. there can help me ?
thanks lot !
nobody else answered ???
the simplest way gem green_shoes install with
gem install green_shoes
see http://ashbb.github.com/green_shoes/
then in script
require 'green_shoes' filename = ask_open_file
that's it
ruby-on-rails file csv path openfiledialog
Comments
Post a Comment