SlideShare a Scribd company logo
RUBY ON RAILS 3 Tutorial  を日本語訳してみた Chapter 11-13( 最終回 ) 2012/01/11
Ruby on Rails Tutorial とは 前に LT したときに紹介したサイト http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
この Tutorial では… Twitter( もどき ) を作っています 基本的な機能を備えるようにしている ユーザのプロフィールページ フォロー・フォロワー ツイートの Post サインアップ・ログイン・ログアウト 等々
今回が最終回 全 12 章だと思っていたら、 13 章になっていた 11 章・ 12 章初めは軽く触れるのみ、 12 章最後・ 13 章について今日は話します。
目次 Chapter1 Rails 導入からデプロイ Chapter2  デモアプリ (scaffold 使用 ) Chapter3 Web アプリケーション Chapter4 Rails 風 Ruby Chapter5  スタイルを追加する Chapter6 User Model と View  その 1 Chapter7 User Model と View  その 2
目次 Chapter8  ユーザ登録 Chapter9  ログイン・ログアウト Chapter10  ユーザデータの更新・編集・追加 Chapter11  ミニブログ ( ツイート ) Chapter12  ユーザのフォロー Chapter13 Rails3.1
Chapter11 User microposts  章立て 11.1 Micropost モデル 11.2 micropost の表示 11.3 micropost の操作  ( 追加・削除・制限 )
Chapter11 User microposts ツイート投稿するための実装 テスト (RSpec) のコード バリデーション
Chapter12 Following users  章立て 12.1  リレーション 12.2  フォロー・フォロワー表示 12.3  ステータスフィード
Chapter12 Following users フォロー・フォロワー関係の実装 DB のリレーション has_many belongs_to :through
12.4.2  他の Rails 教材紹介 ① Ruby on Rails Tutorial screencast( 有料 ) (http://railstutorial.org/screencasts) このチュートリアルに沿った動画 本では表示できない、デモ等有り
12.4.2  他の Rails 教材紹介 ② Railscasts( 有料・無料 )   http://railscasts.com/ Rails の説明動画集 無料動画多数あり。動画によって有料会員の必要性有り。 テキスト化されている     -> ASCIIcasts(http://asciicasts.com/) 日本語訳版有り (http://ja.asciicasts.com/)
12.4.2  他の Rails 教材紹介 ③ Scaling Rails( 無料 ) http://railslab.newrelic.com/scaling-rails ( 本 Tutorial では触れていない ) スケールやパフォーマンスについての勉強が出来る 作者的に、 Scout (https://scoutapp.com/) や New Relic (http://www.newrelic.com/) 調べてみるのおすすめ
12.4.2  他の Rails 教材紹介 ③ Ruby on Rails 系の本 本チュートリアル Chapter1 「 Beginning Ruby 」 http://www.amazon.com/gp/product/1430223634 「 The Well-Grounded Rubyist 」 http://www.amazon.com/gp/product/1933988657
Ruby on Rails Tutorial Chapter11-13
12.4.2  他の Rails 教材紹介 (↓もっと Ruby を勉強するなら) 「 The Ruby Way 」 http://www.amazon.com/gp/product/0672328844 (↓もっと Rails を勉強するなら) 「 Rails 3 Way 」 http://www.amazon.com/gp/product/0321601661
Ruby on Rails Tutorial Chapter11-13
12.4.2  他の Rails 教材紹介 ④ PeepCode ( 有料 ) http://peepcode.com/ とても広い知識を付けられる クオリティがたかいらしい 個人的には、 Rails for Zombies(http://railsforzombies.org/) おすすめ。 無料で出来て、 screencast で勉強->クイズの流れ Rails 初学にすごくいいと思う。
Chapter13 Rails3.1 Rails が 3.1 になって変わったところが多数 Prototype.js->jQuery Sass ・ CoffeeScript 等々
13.1 Upgrading the sample app Rails のバージョンを 3.1 に上げる 「 Helpful resources for upgrading to Rails 3.1 」 http://jasonrudolph.com/blog/2011/06/06/helpful-resources-for-upgrading-to-rails-3-1/ 「 How to upgrade a Rails application to version 3.1.0 」 http://davidjrice.co.uk/2011/05/25/how-to-upgrade-a-rails-application-to-version-3-1-0.html Tutorial では下の方を使う
13.1.4 Major differences public 以下にあった images 、 stylesheets 、 javascripts が app/assets 以下に vendor/assets 以下にはライブラリを置く JS ライブラリが Prototype から jQuery に変更
本の内容はここまで!
Tutorial 全部を通して Ruby の文法的基礎・ Rails のセットアップから Git の使いかた・テストの書き方 (RSpec) Twitter ぽい物 ができるようになります! 情報源にすべきサイト・本が載っている
Ruby on Rails Tutorial に関して 分かりやすい英語で読みやすい Screencast を買うという手も 更新がちゃんとされている。割と新しい情報 ちょっと重いが、初心者 (~ 中級者 ?) 向け
エピローグ 2011/9 から、思いつきで初めてはや 2012 年… Hamamatsu.rb の場をお借りしてきました 試行錯誤うまくいかず、グダグダ感あふれる発表… Hamamatsu.rb のおかげで読了できました!
ご清聴 ありがとうございました! 長い間大変お世話になりました! 今月で参加はおそらく最後になると思います。海山は東京に飛んで行きます。またお会いする日まで!
Ad

More Related Content

Similar to Ruby on Rails Tutorial Chapter11-13 (20)

Rails初心者レッスン lesson4 2edition
Rails初心者レッスン lesson4 2editionRails初心者レッスン lesson4 2edition
Rails初心者レッスン lesson4 2edition
Satomi Tsujita
 
Rails初心者レッスン lesson1 3rd edition
Rails初心者レッスン lesson1 3rd editionRails初心者レッスン lesson1 3rd edition
Rails初心者レッスン lesson1 3rd edition
Goh Matsumoto
 
capybara で快適なテスト生活を
capybara で快適なテスト生活をcapybara で快適なテスト生活を
capybara で快適なテスト生活を
Ryunosuke SATO
 
20091119_sinatraを使ってみた
20091119_sinatraを使ってみた20091119_sinatraを使ってみた
20091119_sinatraを使ってみた
ngi group.
 
Ruby on Rails3 Tutorial Chapter3
Ruby on Rails3 Tutorial Chapter3Ruby on Rails3 Tutorial Chapter3
Ruby on Rails3 Tutorial Chapter3
Sea Mountain
 
Ruby on Rails を用いたWEBアプリケーションの開発
Ruby on Rails を用いたWEBアプリケーションの開発Ruby on Rails を用いたWEBアプリケーションの開発
Ruby on Rails を用いたWEBアプリケーションの開発
Koichi Shimozono
 
Rails解説セミナー: リリースノート解説編
Rails解説セミナー: リリースノート解説編Rails解説セミナー: リリースノート解説編
Rails解説セミナー: リリースノート解説編
Yohei Yasukawa
 
Railsチュートリアル(second)を終えて
Railsチュートリアル(second)を終えてRailsチュートリアル(second)を終えて
Railsチュートリアル(second)を終えて
Hirata Tomoko
 
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Yoshinori Kobayashi
 
Rails templateで開発の初速を上げよう
Rails templateで開発の初速を上げようRails templateで開発の初速を上げよう
Rails templateで開発の初速を上げよう
豊明 尾古
 
Ruby/Rails Benchmarking and Profiling with TDD
Ruby/Rails Benchmarking and Profiling with TDDRuby/Rails Benchmarking and Profiling with TDD
Ruby/Rails Benchmarking and Profiling with TDD
Yasutomo Uemori
 
Rails あるある
Rails あるあるRails あるある
Rails あるある
Ryunosuke SATO
 
高トラフィックサイトをRailsで構築するためのTips基礎編
高トラフィックサイトをRailsで構築するためのTips基礎編高トラフィックサイトをRailsで構築するためのTips基礎編
高トラフィックサイトをRailsで構築するためのTips基礎編
Kazuya Numata
 
Ruby on Rails3 Tutorial Chapter2
Ruby on Rails3 Tutorial Chapter2Ruby on Rails3 Tutorial Chapter2
Ruby on Rails3 Tutorial Chapter2
Sea Mountain
 
A HUGE CHANGE RAILS 5 IS APPROACHING FAST
A HUGE CHANGE RAILS 5 IS APPROACHING FASTA HUGE CHANGE RAILS 5 IS APPROACHING FAST
A HUGE CHANGE RAILS 5 IS APPROACHING FAST
Kenichi Tachibana
 
Dockerのオフィシャルrubyイメージとは?
Dockerのオフィシャルrubyイメージとは?Dockerのオフィシャルrubyイメージとは?
Dockerのオフィシャルrubyイメージとは?
Kazuhiro Nishiyama
 
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
Takahiro Okumura
 
Ruby on Rails の特徴とそのエコシステム
Ruby on Rails の特徴とそのエコシステムRuby on Rails の特徴とそのエコシステム
Ruby on Rails の特徴とそのエコシステム
Tomoya Kawanishi
 
Ruby on Rails Tutorial Chapter5-7
Ruby on Rails Tutorial Chapter5-7Ruby on Rails Tutorial Chapter5-7
Ruby on Rails Tutorial Chapter5-7
Sea Mountain
 
Rails初心者レッスン lesson4 2edition
Rails初心者レッスン lesson4 2editionRails初心者レッスン lesson4 2edition
Rails初心者レッスン lesson4 2edition
Satomi Tsujita
 
Rails初心者レッスン lesson1 3rd edition
Rails初心者レッスン lesson1 3rd editionRails初心者レッスン lesson1 3rd edition
Rails初心者レッスン lesson1 3rd edition
Goh Matsumoto
 
capybara で快適なテスト生活を
capybara で快適なテスト生活をcapybara で快適なテスト生活を
capybara で快適なテスト生活を
Ryunosuke SATO
 
20091119_sinatraを使ってみた
20091119_sinatraを使ってみた20091119_sinatraを使ってみた
20091119_sinatraを使ってみた
ngi group.
 
Ruby on Rails3 Tutorial Chapter3
Ruby on Rails3 Tutorial Chapter3Ruby on Rails3 Tutorial Chapter3
Ruby on Rails3 Tutorial Chapter3
Sea Mountain
 
Ruby on Rails を用いたWEBアプリケーションの開発
Ruby on Rails を用いたWEBアプリケーションの開発Ruby on Rails を用いたWEBアプリケーションの開発
Ruby on Rails を用いたWEBアプリケーションの開発
Koichi Shimozono
 
Rails解説セミナー: リリースノート解説編
Rails解説セミナー: リリースノート解説編Rails解説セミナー: リリースノート解説編
Rails解説セミナー: リリースノート解説編
Yohei Yasukawa
 
Railsチュートリアル(second)を終えて
Railsチュートリアル(second)を終えてRailsチュートリアル(second)を終えて
Railsチュートリアル(second)を終えて
Hirata Tomoko
 
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Instagram Ruby Gem と Instagram API から学んだことまとめ|【CoEdo.rb】Ruby / Ruby on Rails ...
Yoshinori Kobayashi
 
Rails templateで開発の初速を上げよう
Rails templateで開発の初速を上げようRails templateで開発の初速を上げよう
Rails templateで開発の初速を上げよう
豊明 尾古
 
Ruby/Rails Benchmarking and Profiling with TDD
Ruby/Rails Benchmarking and Profiling with TDDRuby/Rails Benchmarking and Profiling with TDD
Ruby/Rails Benchmarking and Profiling with TDD
Yasutomo Uemori
 
高トラフィックサイトをRailsで構築するためのTips基礎編
高トラフィックサイトをRailsで構築するためのTips基礎編高トラフィックサイトをRailsで構築するためのTips基礎編
高トラフィックサイトをRailsで構築するためのTips基礎編
Kazuya Numata
 
Ruby on Rails3 Tutorial Chapter2
Ruby on Rails3 Tutorial Chapter2Ruby on Rails3 Tutorial Chapter2
Ruby on Rails3 Tutorial Chapter2
Sea Mountain
 
A HUGE CHANGE RAILS 5 IS APPROACHING FAST
A HUGE CHANGE RAILS 5 IS APPROACHING FASTA HUGE CHANGE RAILS 5 IS APPROACHING FAST
A HUGE CHANGE RAILS 5 IS APPROACHING FAST
Kenichi Tachibana
 
Dockerのオフィシャルrubyイメージとは?
Dockerのオフィシャルrubyイメージとは?Dockerのオフィシャルrubyイメージとは?
Dockerのオフィシャルrubyイメージとは?
Kazuhiro Nishiyama
 
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
2015年GMOペパボ新卒エンジニア研修 Web開発研修イントロダクション
Takahiro Okumura
 
Ruby on Rails の特徴とそのエコシステム
Ruby on Rails の特徴とそのエコシステムRuby on Rails の特徴とそのエコシステム
Ruby on Rails の特徴とそのエコシステム
Tomoya Kawanishi
 
Ruby on Rails Tutorial Chapter5-7
Ruby on Rails Tutorial Chapter5-7Ruby on Rails Tutorial Chapter5-7
Ruby on Rails Tutorial Chapter5-7
Sea Mountain
 

Ruby on Rails Tutorial Chapter11-13

  • 1. RUBY ON RAILS 3 Tutorial を日本語訳してみた Chapter 11-13( 最終回 ) 2012/01/11
  • 2. Ruby on Rails Tutorial とは 前に LT したときに紹介したサイト http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
  • 3. この Tutorial では… Twitter( もどき ) を作っています 基本的な機能を備えるようにしている ユーザのプロフィールページ フォロー・フォロワー ツイートの Post サインアップ・ログイン・ログアウト 等々
  • 4. 今回が最終回 全 12 章だと思っていたら、 13 章になっていた 11 章・ 12 章初めは軽く触れるのみ、 12 章最後・ 13 章について今日は話します。
  • 5. 目次 Chapter1 Rails 導入からデプロイ Chapter2 デモアプリ (scaffold 使用 ) Chapter3 Web アプリケーション Chapter4 Rails 風 Ruby Chapter5 スタイルを追加する Chapter6 User Model と View その 1 Chapter7 User Model と View その 2
  • 6. 目次 Chapter8 ユーザ登録 Chapter9 ログイン・ログアウト Chapter10 ユーザデータの更新・編集・追加 Chapter11 ミニブログ ( ツイート ) Chapter12 ユーザのフォロー Chapter13 Rails3.1
  • 7. Chapter11 User microposts 章立て 11.1 Micropost モデル 11.2 micropost の表示 11.3 micropost の操作 ( 追加・削除・制限 )
  • 8. Chapter11 User microposts ツイート投稿するための実装 テスト (RSpec) のコード バリデーション
  • 9. Chapter12 Following users 章立て 12.1 リレーション 12.2 フォロー・フォロワー表示 12.3 ステータスフィード
  • 10. Chapter12 Following users フォロー・フォロワー関係の実装 DB のリレーション has_many belongs_to :through
  • 11. 12.4.2 他の Rails 教材紹介 ① Ruby on Rails Tutorial screencast( 有料 ) (http://railstutorial.org/screencasts) このチュートリアルに沿った動画 本では表示できない、デモ等有り
  • 12. 12.4.2 他の Rails 教材紹介 ② Railscasts( 有料・無料 )   http://railscasts.com/ Rails の説明動画集 無料動画多数あり。動画によって有料会員の必要性有り。 テキスト化されている     -> ASCIIcasts(http://asciicasts.com/) 日本語訳版有り (http://ja.asciicasts.com/)
  • 13. 12.4.2 他の Rails 教材紹介 ③ Scaling Rails( 無料 ) http://railslab.newrelic.com/scaling-rails ( 本 Tutorial では触れていない ) スケールやパフォーマンスについての勉強が出来る 作者的に、 Scout (https://scoutapp.com/) や New Relic (http://www.newrelic.com/) 調べてみるのおすすめ
  • 14. 12.4.2 他の Rails 教材紹介 ③ Ruby on Rails 系の本 本チュートリアル Chapter1 「 Beginning Ruby 」 http://www.amazon.com/gp/product/1430223634 「 The Well-Grounded Rubyist 」 http://www.amazon.com/gp/product/1933988657
  • 16. 12.4.2 他の Rails 教材紹介 (↓もっと Ruby を勉強するなら) 「 The Ruby Way 」 http://www.amazon.com/gp/product/0672328844 (↓もっと Rails を勉強するなら) 「 Rails 3 Way 」 http://www.amazon.com/gp/product/0321601661
  • 18. 12.4.2 他の Rails 教材紹介 ④ PeepCode ( 有料 ) http://peepcode.com/ とても広い知識を付けられる クオリティがたかいらしい 個人的には、 Rails for Zombies(http://railsforzombies.org/) おすすめ。 無料で出来て、 screencast で勉強->クイズの流れ Rails 初学にすごくいいと思う。
  • 19. Chapter13 Rails3.1 Rails が 3.1 になって変わったところが多数 Prototype.js->jQuery Sass ・ CoffeeScript 等々
  • 20. 13.1 Upgrading the sample app Rails のバージョンを 3.1 に上げる 「 Helpful resources for upgrading to Rails 3.1 」 http://jasonrudolph.com/blog/2011/06/06/helpful-resources-for-upgrading-to-rails-3-1/ 「 How to upgrade a Rails application to version 3.1.0 」 http://davidjrice.co.uk/2011/05/25/how-to-upgrade-a-rails-application-to-version-3-1-0.html Tutorial では下の方を使う
  • 21. 13.1.4 Major differences public 以下にあった images 、 stylesheets 、 javascripts が app/assets 以下に vendor/assets 以下にはライブラリを置く JS ライブラリが Prototype から jQuery に変更
  • 23. Tutorial 全部を通して Ruby の文法的基礎・ Rails のセットアップから Git の使いかた・テストの書き方 (RSpec) Twitter ぽい物 ができるようになります! 情報源にすべきサイト・本が載っている
  • 24. Ruby on Rails Tutorial に関して 分かりやすい英語で読みやすい Screencast を買うという手も 更新がちゃんとされている。割と新しい情報 ちょっと重いが、初心者 (~ 中級者 ?) 向け
  • 25. エピローグ 2011/9 から、思いつきで初めてはや 2012 年… Hamamatsu.rb の場をお借りしてきました 試行錯誤うまくいかず、グダグダ感あふれる発表… Hamamatsu.rb のおかげで読了できました!
  • 26. ご清聴 ありがとうございました! 長い間大変お世話になりました! 今月で参加はおそらく最後になると思います。海山は東京に飛んで行きます。またお会いする日まで!

Editor's Notes

  • #14: モニタリングツール これを使ってみて、怪しいと思ったら、 Rails Casts で、スケーリングの話・プロファイリング、キャッシュ、非同期処理等の話題があるよー見てみたらいいよー