similar to: will_paginate generates undefined method paginate

Displaying 20 results from an estimated 3000 matches similar to: "will_paginate generates undefined method paginate"

2009 Nov 03
2
will_paginate pagination problem
hi; i use will_paginate the first page come true but all other page get the same data of first page i checked in controller "page" parameter works true but paginate get only first page''s data and shows these data in all pages forexample first page seen A,B second page also seen A,B but second page must be C,D my code is; controller : @list = Company::Env.paginate :page =>
2009 Nov 01
19
will_paginate vs mislav-will_paginate
I''ve just reinstalled linux (9.10) and am trying to match my gem environment to our server''s. I''m having a problem with will_paginate. On the server, under gem list, i have "mislav-will_paginate (2.3.6)". So, i''m trying to install that locally. Following the instructions on the will_paginate page, http://wiki.github.com/mislav/will_paginate,
2007 Dec 07
2
Pagination using will_paginate
Hi, I use will_paginate plugin to paginate the records in my view file.. I implement the same in 2 of my modules.. Its working fine in one module where i perform only the basic CRUD operation. In the other module i do have search option. This plugin behaves different for that method.. Normally if one click the page number links the request will be posted back to the same action or method
2009 Oct 28
2
mislav-will_paginate(will_paginate)
mislav-will_paginate(will_paginate) doesn''t work after search. servers_controller.rb def index @servers = Server.paginate(:page => params[:page], :per_page => 20, :order => ''device_id ASC'') respond_to do |format| format.html # index.html.erb format.xml { render :xml => @servers } end end def search @servers =
2010 Aug 24
11
will_paginate problem
Hi I am using rails 2.3.8 & ruby 1.3.7 & will_paginate 2.3.14 I have table name books. I am doing this code for pagination, In book_controller @@@@books = Book.paginate :page => params[:page], :per_page => 10@@@@ & in index.html.erb @@@@@<%= will_paginate @books %>@@@@@ Also added in environment.rb file this line @@@@@ require
2009 Mar 05
4
before_filter :action_name OR :action_name
Hi there I am wondering if we can use before_filter in the form of :action OR :action what i want to do is to implement one of the actions, if the first failed, then go to the second when i use before_filter :action1 before_filter :action2 each method will run them, my case is that i want to check if one of them is true and not both any idea?
2009 Sep 18
13
Rails 2.2.3-1 Problem
After installing the rails I faced this problem. If anyone aware of this problem, kindly give solution for this. vellingiri@WebDevel:~/public_html/Isync$ ./script/server => Booting WEBrick... /usr/local/lib/site_ruby/1.8/rubygems.rb:149:in `activate'': can''t activate activeresource (= 2.3.4, runtime), already activated activeresource-2.1.0 (Gem::Exception) from
2009 Nov 26
6
will_paginate don't work on jruby platform
Hello all,will_paginate don''t work on jruby platform, the Model.paginate find works ok, accepts all kinds of params, this is config.gem config.gem ''will_paginate'', :version => ''2.3.11'', :source => ''http://gemcutter.org'', but <%= will_paginate @collection %> doesn''t work it always produce nil(so nothing on page).
2008 Feb 19
3
will_paginate question
Hi- Is it possible to use search parameters with will_paginate? For example, something like this: @var = Model.paginate :per_page => 20, :page => params[:page], :order => ''my_date DESC'', :conditions =>["my_date >= ? AND my_date <=?",@start,@end] I am getting some errors with this, but will this generally work?
2007 Jul 24
9
will_paginate plugin doesn't work with Association Extensions?
I have: class Post < ActiveRecord::Base has_many :comments do def published find( :all, :conditions => {:published => true} ) end end end When in my controller I do Post.find(:first).comments.published.paginate :page => params[:page] I get an error undefined method `paginate'' for []:Array Is will_paginate supposed to
2008 Jul 14
1
will_paginate paginates all instead of subclass
I''m still a newb but having fun - Any help on this problem will be much appreciated. I have mymodel Call.rb class Call < ActiveRecord::Base belongs_to :user has_many:visits, :dependent => :destroy has_many:visits do def latest find :all, :order => ''id DESC'', :limit => 3 end def all_latest find
2010 Nov 24
2
will_paginate on enormous tables
I''m using the plugin will_paginate with a table of more than 100,000 records, i also do a join with other table. I''m wondering if will_pagination in my situation is an appropriate choice, or whether it is better to implement something ad-hoc? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on
2009 May 05
1
will_paginate problem
Hi all, I''m having a bit of a problem with displaying a blog list using the will_paginate helper. My code is: entries_controller: def index @entries = Entry.find(:all) @blog_entries = @entries.paginate( :page => params[:page], :per_page => 4, :include => :user, :order =>
2008 Apr 16
12
how to accomplish pagination in RoR
Hi Folks, I am just trying to get started up in RoR, I have done a simple application of add, edit, delete.... I am now trying to accomplish pagination in RoR, I referred a few tutorials, however none of the examples that i tried from there, seemed to work error free..... I have heard that lots of things have deprecated in RoR, can someone please post me a detailed report of how i can
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2010 Jan 21
2
will_paginate ?
Does anyone have experience with will_paginate? I''m trying to use it with acts_as_ferret. routes.rb ... map.search ''/search'', :controller => ''notes'', :action => ''search'' notes.rb ... acts_as_ferret :fields => [ ''body'' ] notes_controller.rb ... def search if params[ :query ] @query = params[
2009 Aug 13
2
ajax with will_paginate problem
i can use <%= link_to_remote("MEMBER LIST",:update => "mcont", :url => {:controller => :users, :action => :list }) %> this for user listing and then it display record i want to do paging on this list file but it is display one page when i click on second page this will no go to second my controller def list #@images = Image.paginate :page =>
2008 Mar 31
10
Paginate with Rails 2.0.2 question
Hi, So I''m using @post_pages, @posts = paginate :posts, :per_page => 10 to paginate. But I have rails 2.0.2 on my VPS. Now this version of paginate throws an error. What happened to classic pagination and what is done now? Thanks, Ron --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on
2013 Oct 24
6
undefined method `paginate' for #<Class:0x567eb98> in Rails Tutorial
Hi, I''m getting a undefined method `paginate'' for #<Class:0x567eb98> even though I have gem ''will_paginate'' installed. Inside the users_controller I have @users = User.paginate(page: params[:page ]) so I believe I set everything up to be correct. Can you figure out why the method''s undefined, despite installing the gem? -- You received this
2008 Nov 27
7
will_paginate issue
Hi, I am trying paginate (will_paginate) users posts. It is counting and showing the page links correctly, but still showing all the posts on one page. @entries = @user.entries.paginate :per_page => 5, :page => params[:page], :order => ''created_at DESC'' If I change it to @entries = Entry.paginate :per_page => 5 ........ It is fine, but I would like to show only