Forum: Ruby on Rails How to combine rjs with ActiveView::Helper?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Charlie (Guest)
on 2006-04-07 11:13
Suppose in controller:
class ArticlesController < ApplicationController
def search
  render :update do|page|
    page.replace_html 'panel_tab_searchresults',:partial => 'article',
                      :object =>@articles
And i want to add ajax styled Paginator to the view,i have got the
method and i can work well directly used in view:

<%= pagination_links_remote @pages, {:params => { :action =>
      {:url => { :action => @controller.action_name },
      :update => 'content'} %>

How can i combine the Paginator method with the rjs?Or let it be easier:
If I want to render the link_to_remote together with the above rjs
code,what should i do?

This topic is locked and can not be replied to.