search for: paginationhelper

Displaying 8 results from an estimated 8 matches for "paginationhelper".

2007 Aug 01
1
PaginationHelper load_missing_constant error
I just ran into this error after updating rails and the rspec_on_rails plugin (both are on edge): /Users/ben/Work/wizzdl/vendor/rails/activerecord/lib/../../ activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant'': uninitialized constant ActionView::Helpers::PaginationHelper (NameError) from /Users/ben/Work/wizzdl/vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'' from /Users/ben/Work/wizzdl/vendor/plugins/rspec_on_rails/ lib/spec/rails/dsl/behaviour/helper.rb:33 from /usr...
2006 Apr 27
2
How to override pagination_links method
I intend to override pagination_links method. I added following lines of code in application_helper.rb module ActionView module Helpers def pagination_links(paginator, options={}, html_options={}) raise("boom!!") end end end But my code is not executing my code. The view is still using the method pagination_links from rails. What''s the correct way to override
2006 Feb 27
0
Simple Namespace Question
...being identified. I''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 |...
2006 Apr 06
1
Rendering partials with pagination
I currently have a call to this action, which I''d like to paginate: def get_words @catid = params[:category] @words = Category.find(@catid).words render :partial => "word_display", :collection => @words end As you can see, a word_display partial is rendered for each word. If I add the pagination call (getting the links object), how can I then get
2006 Feb 15
0
Confused by this error when trying to use ''pagination''
..._or_even = 1 - odd_or_even %> and instead of being presented a list (like those that I started out with scaffold commands...I get this error. Unknown action No action responded to #<ActionController::Pagination::Paginator:0xb7ab570c>/ Wiki says... http://wiki.rubyonrails.com/rails/pages/PaginationHelper Pagination is included automatically for all controllers. What gives? Craig
2006 Jan 19
8
Pagination_links without "?page=" but with params[:id]
Hello, With default pagination I have this : <a href="/users/infos/3?page=1">1</a> <a href="/users/infos/3?page=3">3</a> but i need this : <a href="/users/infos/1">1</a> <a href="/users/infos/3">3</a> I need to remove the "?page=" parameters and rewrite a little the link ( with a link_to ? )
2006 Apr 06
6
pagination question
i''ve figured out how to use the next and previous links with the paginator class but now i''m trying to figure out how to display all the page numbers in between. looking through the rails api, i found paginator.each() but i''m not sure how to use it, or if that''s even what i am looking for. also, is there a way to limit the amount of pages like some sites
2007 Jul 31
11
helper spec not finding rails core helpers
Hi, My helper specs were going ok until I added a call to a rails DateHelper method in one of my helpers http://api.rubyonrails.com/classes/ActionView/Helpers/ DateHelper.html#M000574 The helper runs fine from my view templates, just dies in the spec test. I boiled my question down to a simple (not too useful) example. I''m not sure what I''m missing. #