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 particular invoice id .I will be
having a page ‘new’ where all the previous invoice items can be stored
(displayed) and new ones can be added .

Thanking you,
Naroor R.

On Dec 15, 2005, at 10:36 PM, Naroor R. wrote:

This is for initialising a new invoiceItems object and also finding


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

It seems you are missing an end paren ) at the end of the
oldinvoiceitems statement.

Cheers-

-Ezra Z.
WebMaster
Yakima Herald-Republic Newspaper
[email protected]
509-577-7732

Thanx a lot … Ezra Z.