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.