Ruby on Rails Tuesday, April 26, 2016

I have a problem... I need save my table historic with all the authorizations ids checked, update the column authorization_origin_id and set the column refinancing_id with the refinancing id created. Example: I checked authorizations ids 2 and 3, so I create historic with two lines with authorization_origin_id 2 and 3 and the refinancing id will be 1. My code:

https://gist.github.com/eltonsantos/b89e33149d4a776ac08d90a8c33cb5d0

Actually my table historic is wrong, authorization_origin_id take, just the last (just one ever =/) value checked and refinancing_id is null

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/54e462cd-12ef-4706-87f3-e6259cc31506%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment