é¢ç½ãgemã®ã¤ã³ã¹ãã¼ã«æ¹æ³ãç¥ãã¾ããã
ã§ã
will_paginateã調ã¹ã¦ãã¦ãè¦åºãã®éãã§ãã
æ®éãã¿ã¼ããã«ã§
$ sudo gem install hogehoge
ãªè¨³ãªãã ããã©ãã
will_paginate wikiã®Installationãè¦ã¦ã¿ãã¨ãRails 2.1ãªããconfig/environment.rbã«æ¬¡ã®ããã«æ¸ããã¨ãæ¸ãã¦ããã
Rails::Initializer.run do |config| config.gem 'mislav-will_paginate', :version => '~> 2.2.3', :lib => 'will_paginate', :source => 'http://gems.github.com' end
ãã?
ã§ãã°ã°ã£ã¦ã¿ãã
Railsにページング機能を追加するwill_paginateをインストール - Ruby Study Goããç¹ããã§ãwill_paginateのインストール方法が変わっていた - idesaku blogçµç±ã§Rails 2.1.0のconfig.gemに失敗する件 - idesaku blogã¸ã
ããããé¢ç½ãããã
config/environment.rbã«æ¸ãã¦ã
config.gem "hogehoge"
ã§ãã¿ã¼ããã«ãã
$ sudo rake gems:install
ããã°ãå¿ è¦ãªgemãã¤ã³ã¹ãã¼ã«åºæ¥ããªãã¦ã
gemã¨ã®ä¾åé¢ä¿ããè¨å®ãã¡ã¤ã«ã«æ¸ãããªãã¦ããªãããã¹ããã ããã
ä»åº¦ãããgemã¤ã³ã¹ãã¼ã«ããæã¯ããããããã¨ã«ãããã
requireããããªããªããã
ããã