Displaying 2 results from an estimated 2 matches for "oldinvoiceitems".
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,
www.naroor.blogspot.com
--
Posted via http://www.ruby-forum.com/.
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 it...