install will_paginate plug in
Reported by thiti | April 2nd, 2009 @ 09:03 AM
Hello , i stall will_paginate plug in by using
mkdir vendor/plugins/will_paginate wget -nv http://github.com/mislav/will_pa... -O- | \tar xzv -C vendor/plugins/will_paginate --strip 1 i get this mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/.gitignore mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/.manifest mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/CHANGELOG.rdoc mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/LICENSE mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/README.rdoc mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/Rakefile mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/apple-circle.gif mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/index.haml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/index.html mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/pagination.css mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/examples/pagination.sass mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/init.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/array.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/collection.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/core_ext.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/finder.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/named_scope.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/named_scope_patch.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/version.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/lib/will_paginate/view_helpers.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/boot.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/collection_test.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/console mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/database.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/finder_test.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/admin.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/developer.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/developers_projects.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/project.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/projects.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/replies.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/reply.rb 2009-04-02 13:11:00 URL:http://download.github.com/mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556.tar.gz [36217/36217] -> "-" [1] mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/schema.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/topic.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/topics.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/user.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/fixtures/users.yml mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/helper.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/lib/ mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/lib/activerecord_test_case.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/lib/activerecord_test_connector.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/lib/load_fixtures.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/lib/view_test_process.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/tasks.rake mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/test/view_test.rb mislav-will_paginate-8888651be8d6656bdf2378731d91a8badbaa2556/will_paginate.gemspec >>>>>>>>>>>>>>>>>>> after that i go to config/environments.rb add the require "will_paginate" at the bottom
and try the script s = Seq.paginate(:page => 1, :per_page => 5) NameError: uninitialized constant Seq::Post
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:105:in `const_missing' from /home/apple/www/rcc_eri/app/models/seq.rb:7 from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in `load_without_new_constant_marking' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:380:in `load_file' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:379:in `load_file' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:259:in `require_or_load' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:425:in `load_missing_constant' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:in `const_missing' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:92:in `const_missing' from (irb):2
pls ,tell me what i missing? thank you
Comments and changes to this ticket
-
Mislav April 2nd, 2009 @ 11:30 AM
There is some problem in your Seq model.
Look at "app/models/seq.rb" at line 7. I don't know what's there, but I guess there is some reference to "Post". Rails tries to find this constant, but it doesn't seem to exists. That's why it reports that Seq::Post is missing.
-
Mislav May 20th, 2009 @ 11:44 AM
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Everyone's favorite Ruby library for pagination of practically anything!