search for: pagination_links_remote

Displaying 5 results from an estimated 5 matches for "pagination_links_remote".

2006 Aug 01
3
paginate, search, sort with ajax problem
...in apps/admin/project. In de tutorial the method is called list. defined in the item_controller I copy and paste the helper methodes to project_helper in the folder helpers/admin/project_helper The files that create the view are located in views/admin/project Problem is that the helper method pagination_links_remote and sort_link_helper crate a link like the folowing: http://localhost:3001/admin/admin/project/search?query=we&sort=name where is should look like this to make the pagination work: http://localhost:3001/admin/project/search?query=we&sort=name notice the diference near "adm...
2006 Apr 18
1
Pagination links with separator
Hi, I have @result_pages and @results obtained from paginate in an action. I want to show the pages as 1 | 2 | 3 | 4 > The fifth page will show: < 5 | 6 | 7 | 8 > and so on. How exactly do I render the paginator to give this effect? I guess I will have to use pagination_links_each. But being new to Rails, I need help. Thanks, Yash -- Posted via http://www.ruby-forum.com/.
2006 Apr 07
0
How to combine rjs with ActiveView::Helper?
...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 tog...
2006 Feb 27
0
Simple Namespace Question
...9;m running Rails 1.0.0, and froze edge, so it''s sitting in /vendor. The actual pagination_helper.rb file is appropriately sitting in: /vendor/rails/actionpack/lib/action_view/helpers ======================== module ActionView module Helpers module PaginationHelper def pagination_links_remote(paginator, page_options={}, ajax_options={}, html_options={}) name = page_options[:name] || DEFAULT_OPTIONS[:name] params = (page_options[:params] || DEFAULT_OPTIONS[:params]).clone pagination_links_each(paginator, page_options) do |n| params[name] = n...
2006 Jun 11
4
remote_function posting?
Hi, I''ve noticed that my remote_function calls are resulting in POST requests. As a result, my routes do not apply since it does not generate a url based on the parameters, but simply posts to the raw url with post data. I want to make a GET request instead of a POST. How can I do that? Has anyone else run into this? Thanks, Ryan -- View this message in context: