Ruby on Rails Monday, August 24, 2015

Hi,

Is there any way that I can Update column value of another table when
saving form data of another model.

For example:

I have two models model A and model B. Both of them have one to many
relation with each other.

On filling data in form fields of model B , when particular condition
met, i want to update the column value of model A.

--
Posted via http://www.ruby-forum.com/.

--
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/bc139a2e833289e31ff6bfbef7c7d6ad%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment