I attended the Ruby study group, Shinjuku.rb #3, so here’s a memo.
■ Kondo-san @udzura https://twitter.com/#!/udzura “Padrino framework が簡単というのは嘘 (It’s a lie that Padrino framework is simple)”
A talk about Padrino, a Sinatra-based framework.
・Padrino で素敵なウェブ開発を - Padrino Ruby Web Framework
■ Okabe-san @foggs2 https://twitter.com/#!/foggs2
How do you pronounce YAML? (YAMLの発音は?)
・YAML はヤムルって発音するのか - foldrrの日記
■ Jinta-san @ckazu https://twitter.com/#!/ckazu
・I want a book called “コードレビューを支える技術 (Technology Supporting Code Reviews)”!
・A talk about solving the FizzBuzz problem using genetic algorithms
■ @joker1007 https://twitter.com/#!/joker1007 “ジョジョで分かる頭じゃなく精神で理解するアジャイル (Understanding Agile with Spirit Rather Than Mind, Explained Through JoJo)”
■ Kono-san @jugyo https://twitter.com/#!/jugyo “mocktra 等の紹介 (Introduction to mocktra etc.)”
Introduction to mocktra, which is webmock + sinatra.
webmock
・POST可能なRubyのNet::HTTP偽装テストライブラリWebMock+ - きたももんががきたん。
■ “第1 章 Rails の基本 (Chapter 1: Rails Basics)” - “004 DB 接続を設定する (004 Setting up DB connections)”
You can write ERB inside database.yml.
・Knockin’on TechLog » Blog Archive » Railsのdatabase.ymlはERBを通される
・database.ymlにERBが使えます&alias_method_chain
・パスワードをdatabase.ymlの外に追い出す方法 - こせきの技術日記
About YAML anchors and aliases (YAML の アンカーとエイリアス について).
・Rubyist Magazine - プログラマーのための YAML 入門 (初級編)
■ “005 モデル・ビュー・コントローラを自動生成する (005 Auto-generating Model-View-Controller)”
・When creating models with rails g scaffold or rails g model, define the minimum table name and column names on the command line, then modify the migration file later
・For initial DB creation, quickly do it with rake db:setup
・When to use scaffold / when not to use it?
→Use scaffold for CRUD. In that case, throw away all the Views.
That’s all from the Gemba.