Ruby/Ruby on RailsRuby/Ruby on Rails
Yasushi OsonoiYasushi OsonoiOpen Dream corporationOpen Dream corporation
www.opendream.co.jpwww.opendream.co.jp
AgendaAgenda
Ruby
Ruby on rails
Ruby/Ruby on Rails training course in Japan
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)
What's RubyWhat's Ruby
http://www.ruby-lang.org/en/about/
TIOBE Programming Community Index for November TIOBE Programming Community Index for November 20072007
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
Official web siteOfficial web site
http://www.ruby-lang.org/en/
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
Ruby featuresRuby features
Iterations and blocks (closure)
Garbage collector
Dynamic loading
Easy to put (Linux, Unix, DOS, Windows, Mac. BeOS)
Download Ruby and Try.
http://www.ruby-lang.org/en/downloads/
Or
Interactive Ruby
http://www.ruby-lang.org/en/documentation/quickstart/
demo
Interactive Ruby
Ruby on Rails
Developed by David Heinemeier Hansson
Philosophy
DRY (Don’t Repeat Yourself)
Convention over configuration
Ruby on Rails
Web application framework based on Ruby
Easy to develop, deploy and maintain.
MVC architecture
10 times productivity over Java
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
Ruby on Rails
Download and Try
http://www.rubyonrails.org/
Or Eclipse basaed RadRails
http://www.aptana.com/rails/
Deploy web site
Create exam1 project
Then directory and contents generated
Launch serverLaunch server
Access to Ruby site
http://Localhost:3000/
Launch server
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.
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
Ruby/Ruby on Rails training example
Top Related