Re: Paginate with Rails 2.0.2 question

Ron
Mon, 31 Mar 2008 03:20:21 -0000

Hi James,

Thanks...but I tried that. I did:
sudo ruby plugin install svn://errtheblog.com/svn/plugins/

Now I''m getting:

/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/
dependencies.rb:478:in `const_missing'': uninitialized constant
Rails::Plugin::Err (NameError)
	from /home/ron/ic/vendor/plugins/plugins/acts_as_cached/init.rb:2:in
`evaluate_init_rb''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:
79:in `evaluate_init_rb''
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:
75:in `evaluate_init_rb''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin.rb:
39:in `load''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin/
loader.rb:33:in `load_plugins''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/rails/plugin/
loader.rb:32:in `load_plugins''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:
189:in `load_plugins''
	 ... 22 levels...
	from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require''
	from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:
39
	from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require''
	from script/server:3

Now that I look at it, maybe I didn''t specify the whole path.  It
seems to have installed 3 or 4 plugins.  Not sure how I would
uninstall them and just install the classic_pagination plugin.  One of
them must be incompatible with 2.0.2

Ron

On Mar 30, 7:57 pm, James Byrne
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> Ron wrote:
> > 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?
>
> Became a plugin called: classic_pagination
>
> --
> Posted viahttp://www.ruby-forum.com/.