search for: get_invoices

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

2006 Nov 07
2
undefined local variable or method `invoices' for Provider:Class
I''m pretty new to Rails, and I think my app has progressed quicker than my knowledge of Rails/Ruby has ... I have the following models: [ -- Begin -- ] class Provider < ActiveRecord::Base has_many :invoices has_one :user def self.get_invoices invoices.find(:all) end end class User < ActiveRecord::Base belongs_to :Provider belongs_to :Consumer def invoices_raised Provider.get_invoices end ... end [ -- End -- ] and when I call User.invoices_raised I get this error: undefined local variable or method `invoices...
2008 Jun 14
0
does BackgrounDRB not "know" the rails environment it is running within/in parallel with?]
Hi, it probably is a noob question but I''m confused by this error message: active_support/dependencies.rb:478:in `const_missing'': uninitialized constant Invoice::ApplicationController Situation: I have an InvoicesController with a create method that in turn calls upon a MiddleMan.worker(:billing_worker), which in turn finds an Invoice and calls upon @invoice.print_invoice