Rails3時代のpaginationの標準に成り得るkaminariのインストールと設定の方法をまとめます。 Kaminariはamatsudaさんが作られたpaginationのためのgemです。 使用させていただいたところ、現在ひろく使用されているwill_paginateからこのkaminariに乗り換えてしまうのに充分な機能がある上、will_paginateと比較してシンプルなためにレンダリングのカスタマイズ等が容易に感じられました。 amatsudaさんありがとうございます。 以下、インストールからカスタマイズの方法までをまとめます。 Kaminariのインストール方法 Gemとしてインストールします。 単にgemとしてインストールするだけであれば、シェルで、 $ gem install kaminari のように入力します。 Rails 3で使用する場合は、Gemfileの
Releases, Offers & More Be the first to hear about our newest content, best promotions and upcoming events. Plus get 25% off your next purchase. Newsletter Sign Up Download Accounts Your email address is your account identifier. You can create a password, or just download from the links sent via email. My Orders (Resend order emails) How We're Different Hands-on instructions Solutions to real-worl
TL;DR: ActiveRecord in Rails 3.0.2 is faster than 2.3.x for some queries because ARel was rewritten. HEY INTERNET, HOW ARE YOU DOING? I’m doing GREAT, thanks for asking! Recently, I released a new version of ARel. What is ARel, you may ask? Well, some people would tell you that ARel is a “relational algebra library”. I like calling ARel a “relation algebra library” because that is a rather vague d
このウェブサイトは販売用です! twiwt.org は、あなたがお探しの情報の全ての最新かつ最適なソースです。一般トピックからここから検索できる内容は、twiwt.orgが全てとなります。あなたがお探しの内容が見つかることを願っています!
MongoDB and Authlogic, any gotchas? (mongomapper) Authlogic, by itself, seems to be too active record centric for MongoDB (specifically mongomapper) as per: http://github.com/binarylogic/authlogic/issues#issue/15. However, there's an interesting authlogic plugin for mongo that looks pretty awesome, and simple. Has anyone used this, or have any experience/recommendations for an authlogic mongodb i
Rails 3.0 リリースノート和訳 - 前編 - おもしろWEBサービス開発日記に書かれている、アップグレードの一部を自動化してくれるプラグインrails_upgradeについてのメモです。 インストール方法 script/plugin install git://github.com/rails/rails_upgrade.git rake rails:upgrade:check アプリのソースをみて、Rails 3 にアップグレードするために必要なことをレポートしてくれる。コメント内のソースにも反応するので注意。 実行例 Old router API The router API has totally changed. More information: http://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/
preamble: this post explains, in some detail, how we will implement a nice performance boost for Rails developers. Understanding the details might help gain the full benefits of the optimization, but you will gain some benefits even if you have no idea how it works. As you've probably seen, DHH announced that we'd be looking at flushing in Rails 3.1 to improve the client-side performance of typica
You probably know that Active Record got a facelift and is now powered by Active Relation. A new chainable-award-winning-lazy API was added and received great feedback! However, as more and more people are trying Rails 3 beta, a small incompatibility between the old and new syntax was found. This post explains this incompatibility and how it was solved. The issue Quoting the Lighthouse ticket, ima
RSpec-2 is getting close to a release candidate, and as the beta gems have been flowing a lot of questions have been coming in, especially about documentation. Here is some information that should help. Source code RSpec development has moved to the rspec account on github. There are five repositories at the moment: http://github.com/rspec/rspec http://github.com/rspec/rspec-core http://github.com
railsdispatch.com is for sale Please prove you're not a robot
Deploying, running and managing your Ruby on Rails app is taking away precious resources? Engine Yard takes the operational overhead out of the equation, so you can keep innovating. Fully-managed Ruby DevOpsEasy to use, Git Push deploymentAuto scaling, boost performancePrivate, fully-configured Kubernetes clusterLinear pricing that scales, no surprisesDecades of Ruby and AWS experience
Steps to ensure Haml works: 1. In config/application.rb, be sure to add Haml as a template_engine. config.generators do |g| g.template_engine :haml end 2. Run haml –rails . to initialize Haml under Rails. 3. Rails 3 generators for Haml are at: http://github.com/pjb3/rails3-generators. Passenger 2.2.9 is fully compatible with Rails 3. Though if you wish to take advantage of REE's optimizations you
New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast. A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click her
You probably all have heard that “Rails lets you route to Rack applications directly” and thought “Oh really?” well… bet you didn’t think it would be this simple. Rails 3 really opens up a whole new world of pluggable awesomeness. This post expects you have already installed Rails 3 —prerelease, if not, follow the instructions in the Release Notes The goal here is to make a Sinatra app run inside
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く