Download - Ruby on Rails Presentation
![Page 1: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/1.jpg)
Ruby on RailsPeak IT, 17 September 2008
![Page 2: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/2.jpg)
Joost Hietbrink?www.linkedin.com/in/joosthietbrink
![Page 4: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/4.jpg)
![Page 5: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/5.jpg)
![Page 6: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/6.jpg)
![Page 7: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/7.jpg)
source: http://en.wikipedia.org/wiki/Ruby_(programming_language)
![Page 8: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/8.jpg)
• Birthday: 24 February 1993
• v1.0: 25 December 1996
• “more powerful than Perl, and more OO than Python”
• 99.9% Object Oriented
![Page 9: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/9.jpg)
Yukihiro ‘Matz’ Matsumoto, creator of Ruby.
![Page 10: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/10.jpg)
try ruby! (in your browser)http://tryruby.hobix.com/
![Page 11: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/11.jpg)
![Page 12: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/12.jpg)
• Birth: July 2004
• Shipped with OSX Leopard
• Latest: 2.1.1: 4 September 2008
![Page 13: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/13.jpg)
David ‘dhh’ Heinemeier Hansson
![Page 14: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/14.jpg)
Ruby on Rails vs.JavaPHP.NET
ColdFusionDjango
...
![Page 15: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/15.jpg)
![Page 16: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/16.jpg)
Websites on Rails
![Page 17: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/17.jpg)
Companies using Rails
![Page 18: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/18.jpg)
The Framework
source: http://flickr.com/photos/charlesbodi/236037049/
![Page 19: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/19.jpg)
• Convention over Configuration
• Agile Programming principle
• DRY
![Page 20: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/20.jpg)
app controllers helpers models viewsconfig environments initializersdbdoclib taskslogpublic images javascripts stylesheetsscript performance processtest fixtures functional integration unit...
![Page 21: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/21.jpg)
ModelView
Controller
Framework (MVC)
![Page 22: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/22.jpg)
![Page 23: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/23.jpg)
Modelssource: http://flickr.com/photos/74982136@N00/252447564
![Page 24: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/24.jpg)
ActiveRecord
source: http://media.rubyonrails.org/presentations/pursuitofbeauty.pdf
![Page 25: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/25.jpg)
![Page 26: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/26.jpg)
![Page 27: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/27.jpg)
![Page 28: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/28.jpg)
![Page 29: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/29.jpg)
![Page 30: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/30.jpg)
![Page 31: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/31.jpg)
![Page 32: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/32.jpg)
![Page 33: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/33.jpg)
![Page 34: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/34.jpg)
![Page 35: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/35.jpg)
Fat Models
![Page 36: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/36.jpg)
ActionControllersource: http://flickr.com/photos/sameli/261307204/
![Page 37: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/37.jpg)
![Page 38: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/38.jpg)
![Page 39: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/39.jpg)
![Page 40: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/40.jpg)
RESTfulResources
![Page 41: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/41.jpg)
HTTP verb Controller Action
CRUD Action URL
GET show READ /products/1/products/1.xml
POST create CREATE /products
PUT update UPDATE /products/1
DELETE destroy DESTROY /products/1
GET new /products/new
GET index /products
GET edit /products/1/edit
source: http://rubyenrails.nl/articles/2006/11/02/restful-rails
![Page 42: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/42.jpg)
ActionViewsource: http://flickr.com/photos/bocavermelha/66759796/
![Page 43: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/43.jpg)
![Page 44: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/44.jpg)
action.mimetype.renderer
show.html.erbindex.rss.builderedit.iphone.haml
![Page 45: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/45.jpg)
Generateinstead of
Create
![Page 46: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/46.jpg)
DRY vs. DRO
![Page 47: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/47.jpg)
source: http://media.rubyonrails.org/video/rails_take2_with_sound.mov
![Page 48: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/48.jpg)
Demo?!
![Page 50: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/50.jpg)
More info
• rubyonrails.org
• railscasts.com
• peepcode.com
• rubyenrails.nl
• slideshare.net:
• http://www.slideshare.net/mattb/coding-on-the-shoulders-of-giants
![Page 51: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/51.jpg)
Other interesting stuff..
• http://www.slideshare.net/daveman692/supporting-the-open-web-oscon-2008
• http://microformats.org/
• http://www.dataportability.org/
• http://git.or.cz/
![Page 52: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/52.jpg)
How to create aMP3 Playing Alarm Clock
in Ruby?
![Page 53: Ruby on Rails Presentation](https://reader033.vdocument.in/reader033/viewer/2022060115/5575d905d8b42a917e8b4f2b/html5/thumbnails/53.jpg)
sleep7.hours%x(open~/heaven‐sent.mp3)