Page.replace_html render(:action => 'other_action')

I want to be DRY. I have a controller action, component, that renders
I have another controller action, component_update, that returns RJS:

This what I’d like for ‘component_update.rjs’:
page[params[:scaffold_id]].replace_html render(:action => “component”,
:layout => false)
page[params[:scaffold_id]].visual_effect :highlight

But, the render is returning “”

How do I reuse the component view?

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