Rails ships with a default configuration for the three most common environments that all applications need: test, development, and production. That’s a great start, and for smaller apps, probably enough too. But for Basecamp, we have another... 続きを読む
README.md Custom Configuration Makes it easy to use the Rails.configuration point as your central configuration store, even for things not included in Rails. # config/environments/production.rb BCX::Application.configure do config.x.resque.jo... 続きを読む
原著: Ruby on Rails Tutorial 2nd Edition Facebook グループ: Ruby on Rails Tutorial 翻訳グループ GitHub リポジトリ: yasulab/rails_tutorial_translation_2nd_ed 現状: 現在は,1, 2, 7, 9章の翻訳の草案が終わった状態です. また,3〜4章は,途中まで... 続きを読む
We're almost at the end of the road for Rails 4.0.0. This is intended to be the last release candidate before the final version is released. We have just under a hundred commits in since RC1. All just fixing regressions since the last release... 続きを読む
インフラストラクチャー部の成田です。 先日開催された RubyKaigi 2013 で、 “High Performance Rails” というタイトルの発表をしてきました。 スライドと動画 発表の様子は ustream の録画をご覧ください。 スライドは以下にアップロードしてあります。 High... 続きを読む
All slide content and descriptions are owned by their creators. 続きを読む
Just in time for the opening of RailsConf, we managed to push out the first release candidate of Rails 4.0. This incorporates no less than 1,368 commits since beta 1. You can see the full list of changes on Github. If you're interested in a h... 続きを読む
Want to receive a weekly email containing the scoop on our new titles along with the occasional special offer? Just click the button. (You can always unsubscribe later by editing your account information). Give us an email and a password (you... 続きを読む
ちょうど去年の今頃、SonicGardenにおけるherokuでのサービス運用構成をご紹介しました。去年の比較して、今ではherokuで本番運用されているサービスも増えているかと思いますが、実際の構成例はあまり紹介されていないようです。去年ご紹介した内容も少し古く... 続きを読む
技術部・開発基盤グループの村田です。 クックパッドは本日から、本番環境を Ruby 2.0.0-p0 に移行しました。Ruby 2.0.0-p0 は 2013年2月24日にリリースされた Ruby の最新バージョンです。新しい Ruby を使って気持ち良く開発するために、できるだけ早く Ruby ... 続きを読む
技術部・開発基盤グループの中村です。 この度、クックパッドが開発し、オープンソースとして公開しているRuby on Rails向けプロトタイプ開発用のプラグイン「Chanko」を再設計し、Ruby 2.0.0 への移行に引き続き Chanko 2.0.0 をリリースしました。Chanko 2.0.... 続きを読む
2013 年の新卒研修メニュー Rails Tutorial 目的 2013 年で Web アプリケーションを作る時にモダンな方法で一通り Web アプリケーションを自分一人で作れるようになってもらう 作る過程で Web 開発で必要とされるスキルセットを身につけてもらう 教材と教える項... 続きを読む
『SQL アンチパターン』 7 章に以下のような SQL が出てきます。バグに複数のタグを付けられるような設計において、 'printing' タグが付き、かつ 'performance' タグが付いているバグの検索を行う SQL です。 SELECT * FROM Bugs INNER JOIN Tags AS t1 USING ... 続きを読む
Overview The Ruby on Rails web framework provides a library called ActiveRecord which provides an abstraction for accessing databases. This page lists many query methods and options in ActiveRecord which do not sanitize raw SQL arguments and ... 続きを読む
Secure defaults are critical to building secure systems. If a developer must take explicit action to enforce secure behavior, eventually even an experienced developer will forget to do so. For this reason, security experts say: “Insecure by ... 続きを読む
java-ja.dddの終了後、本編で時間が無くて質問できなかった事、Rails4で規約に組込まれたconcernという横断的関心事と、Rubyでのモジュールを活用した振舞いの分離が、ドメインモデルを考える上でどう関わってくるのか、という疑問について、t_wadaさんに質問し... 続きを読む
Rails 4のturbolinksについて最低でも知っておきたい事 turbolinksとは、ページ遷移をAjaxに置き換え、JavaScriptやCSSのパースを省略することで高速化するgemで、Rails 4からはデフォルトで使用されるようになります。 高速化は大歓迎なのですが、JavaScriptの... 続きを読む
Hot on the heels of the first production version of Ruby 2.0 comes the first beta version of Rails 4.0. The two form a great pair and are already running in production on a number of applications, including Basecamp Breeze. In fact, Ruby 2.0 ... 続きを読む
WEB+DB PRESS Vol.73 設樂 洋爾 白土 慧 大和田 純 松田 明 後藤 大輔 ひろせ まさあき 小林 篤 近藤 宇智朗 まかまか般若波羅蜜 Mr. O 奥野 幹也 佐藤 鉄平 後藤 秀宣 mala 中島 聡 堤 智代 森田 創 A-Listers はまちや2 WEB+DB PRESS編集部 技術評論社 2013-0... 続きを読む
最終的に言ってまえば「好み」ではありますが、私はシンボルやActiveModel(以下AMo)オブジェクトを渡してURL生成させるのが好きなので、メリットを説明してみますね。 シンボル渡しについて まずシンボル渡しの動きとしては、それをto_sして_urlをつけたnamed r... 続きを読む