Well found a solution to part of my last problem....
the find methods actually work know =)
#Controller
--> @invoice = Invoice.new
@files = File.find_all_by_mandant_id(@invoice.mandant_id)
@slips = Slip.find(:all, :conditions =>
{:invoice_id=>nil, :file_id=>@files})
However i'm still trying to find out how to OVERWRITE THE BLANK
invoice_id IN MY SLIP CLASS WITH THE @invoice.id.
In the moment my code looks something like this:
#Cotroller
-->@slips.each do |slip|
invoice_id [email protected]
end
Although it doesn't create an error message it still doesn't overwrite
the blank Slip.invoice_id......
So if anyone has a suggestion or an idea, please help me
Thanks in advance....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---