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 ::
his 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
and new can be added .
Thanking you,
Naroor R.
Blake W. wrote:
:invoiceid => ‘params[:id]’ should be :invoiceid => params[:id]
Single quoting it passes the invoiveid in as a string literal and not
the value from the request.
Blake
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.