Download presentation
Presentation is loading. Please wait.
Published byTeresa Jacobs Modified over 9 years ago
1
Ruby on Rails による Web サイト構築 吉田 和弘 moriq@moriq.com 2008-10-25 オープンセミナー 2008@ 岡山
2
Web application framework Ruby on Rails Merb
3
Ruby on Rails rails-2.1.1 gem install rails Rails Trac → Git and Lighthouse – http://github.com/rails – http://rails.lighthouseapp.com
4
move to … Subversion → Git Test Unit → RSpec Mongrel → Thin Multi process → Multi thread Ruby 1.8 → Ruby 1.9
5
テスト駆動開発 Test Driven Development
6
Testing framework Test Unit → RSpec – Rubyist Magagine (るびま) – スはスペックのス
7
RSpec test/unit → spec/models test/functional → – spec/controllers – spec/helpers – spec/views test/integration → stories → features
8
test/functional Model ControllerView Model
9
spec/controllers Model ControllerView Model mock Model stub Model stub render
10
Stub and Mock isolation from database isolation from view
11
cucumber RSpec story runner → cucumber integration test rake features
12
rcov code coverage tool rake spec:rcov
13
動的な UI Ajax
14
Sortable element Add/Remove element (Client side)
15
セキュリティ Security
16
security features SQL quoting HTML sanitization CSRF protection
17
possible vulnerabilities Cookie session store Mass assignment DoS: ex. XML entity explosion attack
18
キャッシュ Cache
19
ActiveSupport::Cache Cache type: Page / Action / Fragment Cache store: Memory / File / DRb / MemCache / CompressedMemCache
20
サーバ構成 Deployment
21
Thread implementation Ruby 1.8: – Thread = Green Thread Ruby 1.9: – Thread = Native Thread with GIL – and Fiber
22
Network programming Multi Threading + I/O Blocking Single Threading + Non I/O Blocking – Never Block: Multi Fibering
23
Rails 2.1 Ruby on Rails DB App Ruby on RailsApp Ruby on RailsApp Web Server
24
Rails 2.2 Ruby on Rails DB App Pool App Web Server
25
Thank you
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.