I have one browser window which lists widgets and another which shows
their detail. In the old days I would use a link to update the detail page.
Now that I’m using AJAX and RJS, I have the widget page updating parts
of itself with RJS and a new widget controller method ‘select_widget’
updates the detail page.
I want to have links on my list page to update the detail page using:
link_to_remote(“Widget Name”, {:url=>{:controller=>‘Widgets’,
:action=>:select_widget, :widgetid=>id}}, {:target=>‘WIDGETDETAIL’})
But this doesn’t work and I’m getting a popup indicating an RJS object
error, suggesting that the remote call isn’t updating the correct
browser window. Can this be made to work or is this an unsupported way
to use link_to_remote?