Displaying 11 results from an estimated 11 matches for "willpaginate".
Did you mean:
will_paginate
2010 Jul 20
2
uninitialized constant WillPaginate::LinkRenderer
This is becoming painful. Where the file should be? What should be in
it? I am running will_paginate 3.0.pre
Here is my current code sitting in initializers/
class WillPaginateRenderer < WillPaginate::LinkRenderer
def rel_value(page)
"nofollow"
end
end
Thanks for your help,
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this gr...
2011 Aug 23
2
Where is WillPaginate::Finders ???
...mmended performing a /bundle upgrade/ to get rake 0.9.2 -- I did
it, no problem making the upgrade itself.
Unfortunately, after the upgrade, both /rake db:migrate/ (rake is using
0.9.2) and /hobo g migration/ (it says its using rake 0.8.7) produce
errors in the form of:
*uninitialized constant WillPaginate::Finders (NameError)*
/bundle update/ shows: *Using will_paginate (3.0.0) *
The error is occurring in both production and development modes so I''m
stuck - I can''t do anything new (my next big task was to copy the old
website data into the new website) this might require db cha...
2009 Mar 21
2
ApplicationHelper::WillPaginate (NameError)
What wrong?
environment.rb
require "will_paginate"
application_helper.rb
include WillPaginate::ViewHelpers
def will_paginate_with_i18n(collection, options = {})
will_paginate_without_i18n(collection, options.merge(:previous_label =>
I18n.t(:previous), :next_label => I18n.t(:next)))
end
alias_method_chain :will_paginate, :i18n
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/acti...
2010 Jul 23
0
alias_method_chain with i18n
Hello,
I was investigating solutions for i18n with will_paginate and I found
a possible solution at http://lawrencesong.net/2009/01/enable-i18n-in-will_paginate-plugin/
The author adds to application_helper.rb the following code:
#############################################
include WillPaginate::ViewHelpers
def will_paginate_with_i18n(collection, options = {})
will_paginate_without_i18n(collection, options.merge(:previous_label
=> I18n.t(''will_paginate.previous''), :next_label =>
I18n.t(''will_paginate.next'')))
end
alias_method_chain :will_pagin...
2012 Feb 23
4
Undefined Method
...find_by_console(params[:console]) unless
params[:console].blank?
end
The problem I receive is that when I click on the Gaming section of my
website I receive the following error message which I assume is to say
activerecord is not connecting:
undefined method `find_by_console'' for
#<WillPaginate::Collection:0x52cb9d8>
How would I go about solving this problem I have come across?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails...
2009 Aug 24
4
will_paginate: pagination links are wrong
I put everything in a pastie to make it a bit more readable:
http://pastie.org/593379
This is the gist:
Will_paginate doesn''t play quite nice. The first result set is fine,
and when I click on one of the paginated links, it returns the following
error:
Couldn''t find DictatedExam with ID=filter_widget
observe_field triggers filter_widget which calls the paginated search..
Which
2008 Apr 17
1
redbox + will_paginate
Hiya,
I''m trying to use Will_paginate with the RedBox plugin but having
problems making it go to the next page of the collection.
http://blog.craigambrose.com/articles/2006/09/22/redbox-release-2
as far as i can see will_paginate does not support any kind of :remote
ajax call so each page click can update the div element.
has anyone managed to get will_paginate working within a redbox
2012 Feb 09
0
how to rename a method of a module.
I''m using the gem bootstrap-will_paginate and inside this gem there is
the initializer:
require ''will_paginate/view_helpers/action_view''
module WillPaginate
module ActionView
def will_paginate(collection = nil, options = {})
options, collection = collection, nil if collection.is_a? Hash
# Taken from original will_paginate code to handle if the helper
is not passed a collection object.
collection ||= infer_collection_from_controller...
2009 May 18
3
Pagination
Hi,
I am using the will_paginate plugin for my application.
It is showing Previous 1,2,3...22,23,24 Next links
How will I hide the numbers?
I want to have first and last links also. How will i do that?
Thanks in advance.
--
Posted via http://www.ruby-forum.com/.
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 Mar 24
12
MonkeyPatching ActiveRecord::Base class
I am trying to monkey-patch the ActiveRecord::Base class to incorporate
a generic search class method so that it can be used by all model
classes which need this functionality. Since model classes directly
inherit from ActiveRecord::Base and unlike controllers and helpers, do
not have an ancestor class defined, I think I am forced to open the
ActiveRecord::Base class and patch it? May be I am