Displaying 4 results from an estimated 4 matches for "invoiceid".
Did you mean:
invoiced
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 items for a particular invoice id .I will be
having a page ''new'...
2005 Dec 16
4
Adding extra value to an object
...redirect_to :action => ''new'',:id => params[:id]
else
render :action => ''new''
end
end
In the table invoiceitems I have a field called invoice_id which is a
foreign key and the primary key of the table invoices. I need to save
the invoiceid which is in the URL itself (params[:id]) before saving
.How can I do it .
The above method is not storing that .
Thanx and regards,
Naroor Rathish,
www.naroor.blogspot.com
--
Posted via http://www.ruby-forum.com/.
2005 Dec 23
0
adding items to a particular invoice on the same page
...nvoice details and also I have added a AJAX effect so that
fields for invoice items get created dynamically . its all design well but
the issue comes when I am trying to save the page .That is adding ivoice
details to invoices table and invoiceitems details to invoiceitems table .We
have to add the invoiceid to the invoiceitems table .I am adding all the
required code with this mail.
View Index.rhtml
<html>
<head>
<title>Ajax List Demo</title>
<%= javascript_include_tag "prototype" %>
</head>
<body>
<h3>Add to list using Ajax&...