search for: dataexport

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

Did you mean: data_export
2008 Apr 29
6
Intercepting an onClick file download
...to click on a link in order to get the file sent. I don''t know how to get mechanize to correctly identify that. Here is the link to the file I''m trying to retrieve: <td style="vertical-align: bottom; text-align: center;"> <a href="#" onClick="dataExport( ''csv'' ); return false;"><img src="/img/buttons/bu_csv.gif" width="37" height="17" style="border: none;" alt="Export to CVS"></a> </td> Here is my code (partial): agent = WWW::Mechanize.new { |a| a.log...
2006 Apr 28
4
Accessing Rails Models/app from command line script
Hi, Can someone point me to some info on how to access Rails models / ActiveRecord classes from a Ruby command line script? Say I have a plain text file that is put into some directory by an outside process, and I want to have a Ruby script run, via a cron job, that can open and parse that data file. It would then delete all records in some lookup table in my database and load it with the data