Forum: Ruby on Rails Is this possible?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
48e2f53bc3396f2633673907dd0d62ad?d=identicon&s=25 Naroor Rathish (naroor)
on 2005-12-16 07:36
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 Rathish
132a94ca65959bda6c74fae54bff2425?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2005-12-16 07:51
(Received via mailing list)
On Dec 15, 2005, at 10:36 PM, Naroor Rathish wrote:

> This is for initialising a new invoiceItems object and also finding
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails

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

Cheers-

-Ezra Zygmuntowicz
WebMaster
Yakima Herald-Republic Newspaper
ezra@yakima-herald.com
509-577-7732
48e2f53bc3396f2633673907dd0d62ad?d=identicon&s=25 Naroor Rathish (naroor)
on 2005-12-16 08:00
Thanx a lot ........  Ezra Zygmuntowicz
This topic is locked and can not be replied to.