thank you sooo much!! tht was just what i needed for my problem!!

however with each solution....there comes a new problem....so maybe
could you please help me??

What I am pretending to do is this:

1) When I create a new invoice the invoice.id should put itself
automatically in the place of the slip.invoice_id
--> for actually finding out in which slip to put the new invoice.id I
applied many find mehods:
     @akte = Akte.find_all_by_mandant_id(@rchng.mandant_id)
    @slip = Slip.find_all_by_akte_id(@akte, :conditions => {:rchng_id
=> 'NULL'})
--> and i donot get an error message when creating a new invoice...

2) Now tht i have found the right slip to put my invoice.id in I don't
know how to tell ruby on rails that it copies the invoice.id and
 pastes it into the slip.invoice_id. However I've tried this:
-->  @slip.each do |slip|
      slip.rchng_id = rchng.id
    end
--> and i don't get an error message however, the invoice.id does not
appear in the slip.invoice_id

So anybody has an idea of how to get this working??
thnx a lot 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to