渡辺さんがPHPとRubyを徹底比較!開発効率をあげて収益を増やすという記事を出していたので,反応してみます. この記事は,PHPとRails開発について,PHPはメジャーでRailsは開発者が少ないとは言うけど,証拠はあるのかよ!とか具体的にどれくらいの開発者数の... 続きを読む
そうすると、assets以下に以下のディレクトリができる。 javascript/collections javascript/models javascript/routers javascript/views templates templatesは、html置き場。 ecoというテンプレートエンジンを使って書ける。ecoはCoffeeScriptで記述するテン... 続きを読む
2012年1月8日日曜日 [Rails3] 国際化 I18n のまとめ(その3:辞書ファイルの使い方) 実行環境: ruby 1.9.3 Rails 3.1.3 I18n Railsアプリで表示を担当するのはビューなので国際化するのは当然ビューですね。ページに表示される文字すべてが対象となります。 ... 続きを読む
会員数3000万程度の規模のサービスを運営しているものです。 まずは http://newrelic.com の無料版を導入してみれば、ありとあらゆるボトルネックが見つかって改善できると思います。 また、ruby 1.9.2は起動がすごく遅いですしGCの性能にも偏りがあるので、こ... 続きを読む
In this tutorial, I’ll walk you through the concept behind using puma + nginx, plus thorough instructions on setting them up on CentOS and …In this tutorial, I’ll walk you through the concept behind using puma + nginx, plus thorough instru... 続きを読む
もう皆々様におかれましては Ruby 1.9 の廃絶が済んで、今月末とも言われる Rails 4 への移行の為 RC1 で準備をしていることと思います。 〜〜 という新しい機能があるから 〜〜 のように対応すればいい みたいのは Web 上に沢山あるんだけど、 Rails 4 ではこ... 続きを読む
Using New Relic to instrument a Rack app – yesterdayMacRuby 0.10 Released – 5 days agoMacRuby for the Desktop – 7 days agoUsing ActiveRecord with Sinatra (9 Minutes) – 9 days agoJRuby 1.6 is released! – 13 days agoIntend to extend (Ruby ... 続きを読む
When developers first discover the wonders of test-driven development, it’s like gaining entrance to a new and better world with less stress and insecurity. It truly is a wonderful experience well worth celebrating. But internalizing the ben... 続きを読む
Signals vs. Noiseの去年のエントリに、テストをどれくらい書くべきかということについてDHHが指針を示していたものがあったので読み返してみました。 Testing like the TSA by David of 37signals(TSAはTSAロックのTSAですね。RailsConf行く時に買った) 予想... 続きを読む
Intro to Backbone.js with Rails — Presentation Transcript Intro to Backbone.js with Rails by: Tim Tyrrell @timtyrrell Agenda● Why?● No really, why???● Intro to Backbone.js● Using Backbone.js with Rails● Testing● Other Libraries● Wrap ... 続きを読む
Recently, I have been involved in a couple of projects where we use a lot of Backbone.js, and even though I'm still learning, I can definitively help you out with the basics on how to code a basic CRUD with Backbone and Rails. So, if you are ... 続きを読む
In response to: http://news.ycombinator.com/item?id=3214955 The main focus was to follow the naming conventions from thoughtbot and keep it simple. The specific differences are: Different naming conventions Fewer generators Generates Coffee o... 続きを読む
公式 backbonejs.org/ Backbone ドキュメント日本語訳 github.com/enja-oss/Backbone イントロダクション github.com/enja-oss/Backbone/blob/master/docs/Introduction.md なぜ他のフレームワークでなく、Backboneを使うのか? Backbone.jsは、クライアントサ... 続きを読む
A Simple Pattern to Namespace and Selectively Execute Certain Bits of JavaScript Depending on Which Rails Controller and Action are Active Rails 3.1's asset pipeline compiles all of our JavaScript into a single file which is executed on all p... 続きを読む
Clogeny Building and managing large scale JavaScript applications becomes cumbersome as the size of application code grows. Developers often spend lot of time figuring out the flow of application instead doing the original task. There can be... 続きを読む
Railsでは、request.subdomainで簡単にサブドメインの判別ができます。 詳しくはRailsCastsに書いてありますが、特にgemを入れなくても、url_forに1つ機能追加するだけで、実用的なサブドメイン機能が使えます。 何が嬉しいかというと、 ja.example.com en.exam... 続きを読む
早くなりましたか? 動作について① assets:precompile 時に fingerprint を生成、 以降変更がなければスキップしてます。 Capistrano Capistrano にも対応しています。capfile を変更する必要はなく、 普通に cap deploy で意図した通りに動いてくれています。... 続きを読む
It appears that the Rails community has hit the brakes hard on soft-delete (marking database records as ‘deleted’ instead of actually deleting them). Is the entire concept of soft-delete fail? Long before the Rails community embraced soft-d... 続きを読む
エンタープライズ Rails――企業ユーザのためのWebアプリケーション設計術 Dan Chak 著、高井 直人 監訳、笹井 崇司 訳 2009年07月23日 発売予定 340ページ 定価3,360円 ISBN978-4-87311-416-3 原書: Enterprise Rails オライリー・ジャパンで書籍を購入: Ru... 続きを読む
『エンタープライズRails』に学ぶ企業ユーザのためのRailsアーキテクチャ - Presentation Transcript 80 60 40 20 0 2007 2008 2009 Po w ere d by vs class Employee < ActiveRecord::Base validates_presence_of :name CREATE TABLE employees ( name VARCHAR... 続きを読む