It seems i have not show the question very clear. While my app codes is accessing the db,anohter server is updating the db. so What i want is not accessing the db until the db is updated.I think there must be a ruby or rails method to do it, but can not find it. Thanks!
On Apr 16, 2:12 pm, daociyiyou <[email protected]> wrote: > I need your help!Thanks! > > On Apr 16, 11:03 am, daociyiyou <[email protected]> wrote: > > > how do i get my app database info only after another server has > > called my app's method and > > updated my app's database? Now, i can just get the database info > > before anther server calls my app's method. > > > def one > > some code > > two > > some code > > end > > > def two > > calls another server's methods and sends my app ping url(http:// > > myhost/.../three) that will be automaticlly called by that server > > after executing the two method > > end > > > def three > > another server calls this method and updates database > > end --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

