Conceptual help needed for controllers that work with ajax requests


got a problem,
I have a polymorphic object, “phone” that is created via remote
then refreshes the client_phones div id,

But what if I need to call Phone.create from different models,
and refresh e.g. the user_phones div id

How do you handle rendering partials that need data generated from a
controller different than the one calling the template?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs