Displaying 3 results from an estimated 3 matches for "billing_run".
2011 Jul 24
4
Downloading files not stored in database?
Hello list,
I am trying to add functionality to my application that will allow users
to download files that are not stored in a database.
All the examples I have found find the file by ID. which I can not do.
Here is my code from the view:
<h1>Browse files for download</h1>
<% form_for(:download, :url=>{ :controller=>"download",
2011 Feb 15
0
Question on Paperclip paths/urls
...in the view (model#tu_raw_bill_csv.url), it holds the following url:
http://localhost:3000/system/tu_raw_bill_csvs/7/original/integral_tu_raw_bill_csv.txt?1297787632
As well, if I interrogate my model for the file url and path I get this url,
which is clearly not where the file got saved:
@billing_run.tu_raw_bill_csv
/system/tu_raw_bill_csvs/7/original/integral_tu_raw_bill_csv.txt?1297787632
Then, of course when I navigate the link, I get a routing error, and even if
I did not, the file would not be there.
So really two questions:
(1) Why is paperclip saving the wrong path (this looks like t...
2011 Apr 10
0
Delayed_job: how to raise and log exceptions
I have this in a delayed job.
def perform
begin
validation_warnings =
Account.global_import_legacy_accounts(billing_run.legacy_master_iif_csv.path)
rescue Exception => e
BackgroundProcessStatus.update(:status => "Process failed. Error:
#{e}.")
end
end
I am finding that if an exception ocurrs somewhere in the code which is
being called (i.e. somewhere in Account#global_import_legacy_acc...