On filling data in form fields of model B , when particular condition
met, i want to update the column value of model A.
As I explained when you first asked this problem you can write to
records in any table you like in any controller. Simple find the
record you want, update the value and save it. I note you did not
reply to the help offered by Elizabeth or myself in that case.
Also, as Elizabeth suggested, I think perhaps you have missed some of
the basic concepts of Rails and suggest that working right through a
good tutorial such as railstutorial.org (which is free to use online)
would help you and save you a lot of time in the long run.
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.