AJAX + RJS across controllers

Here’s the scenario… there are a lot of models in use in this one
controller, so I want to separate responsibility for remote calls into
different controllers.

some_controller has a view with a list of Foo objects.
some_controller has a form to create a new Foo object.
some_controller has an RJS template for the add_foo action to update its
view.

foo_ajax_controller has an add_foo action.

Is there a way that some_controller can invoke
foo_ajax_controller#add_foo, and have it render some_controller’s
‘add_foo.rjs’?

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