using will_paginate with rails 2.0

dark posted @ 2008年5月24日 21:21 in rails , 1357 阅读

指定依赖的gem(environment.rb):
 

Rails::Initializer.run do |config|

  # Require the latest version of haml
  config.gem "haml"

  # Require a specific version of chronic
  config.gem "chronic", :version => '0.2.3'

  # Require a gem from a non-standard repo
  config.gem "hpricot", :source => "http://code.whytheluckystiff.net"

  # Require a gem that needs to require a file different than the gem's name
  # I.e. if you normally load the gem with require 'aws/s3' instead of
  # require 'aws-s3' then you would need to specify the :lib option
  config.gem "aws-s3", :lib => "aws/s3"
end



然后解压到vender:
 

# Unpack all gems to vendor/gems
rake gems:unpack


 


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter

Copyright © 2007

Webdesign, tvorba www stránek

Valid XHTML 1.1