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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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
  end
end
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 =>
@controller.action_name}},
      {: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?

Thanks
Charlie
This topic is locked and can not be replied to.