Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .
-
Upload
eileen-lamb -
Category
Documents
-
view
217 -
download
3
Transcript of Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .
![Page 1: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/1.jpg)
Ruby/Ruby on RailsRuby/Ruby on Rails
Yasushi OsonoiYasushi OsonoiOpen Dream corporationOpen Dream corporation
www.opendream.co.jpwww.opendream.co.jp
![Page 2: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/2.jpg)
AgendaAgenda
Ruby
Ruby on rails
Ruby/Ruby on Rails training course in Japan
![Page 3: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/3.jpg)
What's RubyWhat's Ruby
Made in Japan programming language
Created by Yukihiro Matsumoto, aka Matz
Open Source
Now Ruby is
#9 among programming languages worldwide (TIOBE November 2007)
(Was #20 in 2006)
200 messages per day (Ruby-talk mailing list)
![Page 4: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/4.jpg)
What's RubyWhat's Ruby
http://www.ruby-lang.org/en/about/
![Page 5: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/5.jpg)
TIOBE Programming Community Index for November TIOBE Programming Community Index for November 20072007
![Page 6: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/6.jpg)
Mailing list (English)Mailing list (English)
[email protected] English language discussion about Ruby
[email protected] Documentation standards and tools
[email protected] Notifications of CVS commits to Ruby source
[email protected] English/Japanese discussion of core implementation topics
![Page 7: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/7.jpg)
Official web siteOfficial web site
http://www.ruby-lang.org/en/
![Page 8: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/8.jpg)
Ruby featuresRuby features
Easy syntax, Flexibility
Implementing basic object oriented function (class, method, call)
Unique object oriented function (mix-in, Unique methode)
Operators overloading
Exception handling
![Page 9: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/9.jpg)
Ruby featuresRuby features
Iterations and blocks (closure)
Garbage collector
Dynamic loading
Easy to put (Linux, Unix, DOS, Windows, Mac. BeOS)
![Page 10: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/10.jpg)
Download Ruby and Try.
http://www.ruby-lang.org/en/downloads/
Or
Interactive Ruby
http://www.ruby-lang.org/en/documentation/quickstart/
![Page 11: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/11.jpg)
demo
Interactive Ruby
![Page 12: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/12.jpg)
Ruby on Rails
Developed by David Heinemeier Hansson
Philosophy
DRY (Don’t Repeat Yourself)
Convention over configuration
![Page 13: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/13.jpg)
Ruby on Rails
Web application framework based on Ruby
Easy to develop, deploy and maintain.
MVC architecture
10 times productivity over Java
![Page 14: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/14.jpg)
Ruby on Rails
MVC(Model, View, Controller) model
DBController
View
Model
Web Browser
①
③
②
④
①Browser sends request
②Controller interacts with Model
③Controller Invokes view
④View renders next browser screen
![Page 15: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/15.jpg)
Ruby on Rails
Download and Try
http://www.rubyonrails.org/
Or Eclipse basaed RadRails
http://www.aptana.com/rails/
![Page 16: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/16.jpg)
Deploy web site
Create exam1 project
Then directory and contents generated
![Page 17: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/17.jpg)
Launch serverLaunch server
Access to Ruby site
http://Localhost:3000/
Launch server
![Page 18: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/18.jpg)
And more
Create Controller
Ruby script\generate controller …
Create Model
Ruby script\generate model …
Create Scaffolds
Ruby script\generate scaffold
Scaffolds is an auto-generated framework for manipulating a model.
![Page 19: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/19.jpg)
Ruby/Ruby on Rails training example
OpenDream
Ruby Basics (2 days)
Ruby on Rails (3 days)
Ruby on Rails 1day
Ruby on Rails and AJAX (1day)
Custom course
Ruby/Ruby on Rails 1 week
Ruby/Ruby on Rails 2 weeks
![Page 20: Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation .](https://reader038.fdocuments.in/reader038/viewer/2022110212/56649f355503460f94c53c9c/html5/thumbnails/20.jpg)
Ruby/Ruby on Rails training example