similar to: does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]

Displaying 15 results from an estimated 15 matches similar to: "does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]"

2006 May 31
1
find by sql
Hi I have the following code, which makes use of an sql statment to get the results required. However this just doesnt seem right for rails, as ive managed to develop the whole project without using any other pure sql. Is there a cleaner way of doing this, but gaining the same results. thanks scott #sql to find all invoices pSql = "SELECT DISTINCT invoices.id,
2006 Nov 18
1
deriv when one term is indexed
Hi, I'm fitting a standard nonlinear model to the luminances measured from the red, green and blue guns of a TV display, using nls. The call is: dd.nls <- nls(Lum ~ Blev + beta[Gun] * GL^gamm, data = dd, start = st) where st was initally estimated using optim() st $Blev [1] -0.06551802 $beta [1] 1.509686e-05 4.555250e-05 7.322720e-06 $gamm [1] 2.511870 This works fine but I
2016 Jun 22
0
Problem executing VM backups
Hi everyone, we are suddenly having a problem with executing our backup jobs. For a long time, we have used a shell script which contains the following code to backup all our virtual machines: for domain in Testserver Faktura Fileserver Gitolite Jenkins Nexus SimpleHelp VpnGateway Wiki; do echo -n "$(date +"%Y-%m-%d %H:%M:%S") starting backup for vm
2017 May 08
0
Faktura, zamówienie 0762
An HTML attachment was scrubbed... URL: <http://www.zytor.com/pipermail/klibc/attachments/20170508/3bc4f98a/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Faktura20179401.doc Type: application/msword Size: 368128 bytes Desc: not available URL:
2006 Jun 06
3
Invoice and invoice_lines
Hello People, I have a possibly very lame question. I am fairly new to RoR, and I want to make sure I do it "right". I have a model called Invoice, and one called InvoiceLines. Usual story: the table "invoice" has a 1:n relationship with "invoice_lines", which includes invoice_id. Now... the application will have a "new order" button, which will allow
2005 Dec 16
4
Adding extra value to an object
Hello friends , I have a clear method here :: def create @invoiceitems = Invoiceitems.new(params[:invoiceitems]) @invoiceitems["invoice_id"] = params[:id] if @invoiceitems.save flash[:notice] = ''Invoiceitems was successfully created.'' redirect_to :action => ''new'',:id => params[:id] else render :action =>
2006 Oct 24
13
How can my boss take rails seriously with bugs like this?
The Time::next_week method is supposed to give the time of the start of the next week. But look at this, it cocks up : >> t=Time.parse "Monday October 16th 2006" => Mon Oct 16 00:00:00 BST 2006 >> t.next_week => Mon Oct 23 00:00:00 BST 2006 >> t.next_week.next_week => Tue Oct 24 00:00:00 BST 2006 >> t.next_week.next_week.next_week => Mon Oct 30
2006 Jul 05
2
get value from array.
hi, Im running the following sql statment which returns 1 result. pSql = "SELECT sum(amount) FROM payments WHERE expected_pay_date LIKE ''"+pWholeDate+"%'' AND invoice_id IS null " aResult = Payment.find_by_sql(pSql) how can I get the result of this? (when doing @aResult.inspect it
2006 Jun 29
0
Problem getting encrypted submit buttons working with the paypal gem and rails 1.1.2
I''m running Rails 1.1.2, and using version 1.9.0 of the paypal gem. When I make unencrypted paypal forms, they work just fine, I get the IPN notification from the sandbox and everything is wonderful. When I try to encrypt the form though, all I get is the error message "We were unable to authorize the transaction. Please contact your merchant.", which is ... unhelpful.
2005 Dec 16
3
Not able to put into a object variable
hello friends , I was trying to select all the invoice items from the table invoiceitems with a condition.But I am getting a NULL array .Please help me in fixing this :: @oldinvoiceitems = Invoiceitems.find(:all, :conditions => [''invoice_id = :invoiceid'', { :invoiceid => ''params[:id]'' } ] ) Thanx and regards, Naroor Rathish,
2005 Dec 16
2
Is this possible?
Hello Friends, def new @invoiceitems = Invoiceitems.new @oldinvoiceitems = Invoiceitems.find(:all, :conditions =>[''invoice_id = :invoiceid'', { :invoiceid => params[:id] } ] end Error is being shown in the line number with ''end''. This is for initialising a new invoiceItems object and also finding and storing all the invoice items for a
2007 Aug 13
0
Invoice system
Hi, I wanna make a invoice system. I''ve set up a invoice model and a invoice_item model (invoice has_many invoice_item and invoice_item belongs_to invoice). Also invoice belongs_to a customer, and a customer has_many invoice. My problem is i don''t know how to create the form for making a new invoice. I''ve made a similar system in php, and here is how the html form was:
2008 May 25
2
record will absolutely not save! so weird, please help.
I have a weird problem going on. All of sudden, records for a certain model will not save with #save Please take a look at this: >> p = Payment.new(:payment_reason_id => 1, :payment_method_id => 1, :date => Date.today, :amount => ''5.00'', :payable => Student.find(608)) => #<Payment id: nil, school_id: nil, payment_reason_id: 1, payment_method_id: 1,
2007 Apr 10
1
[PATCH] Add support for DHCP-Options
hi, I've written a start of an c32-module to do basic substition: add subst.c32 this is a start of a generic substition module --- commit 9a1f41a7e6599fe6a162197cd9ddc6610185e780 tree cfb799a0be9844926afe44e21b2eb96630666c44 parent 89478bdbfa7167bc1b627a478d042c99e46f06b7 author Maurice Massar <massar at unix-ag.uni-kl.de> Tue, 10 Apr 2007 20:13:39 +0200 committer Maurice Massar
2008 May 05
2
Deploying to a staging server using Capistrano: how to start up BackgrounDRb?
Hi. I am using BackgrounDRb to process thumbnails and upload to S3 - things are hunky-dory in development (thumbs are generated, these are uploaded to S3, the metadata is saved to trhe DB, and I get a nice status page updated by periodic calls via ask_status), but when I tried to deploy to our staging server and stop/start BackgrounDRb via Capistrano, things blew up - well, not exactly,