210 likes | 256 Views
Ruby/Ruby on Rails. Yasushi Osonoi Open Dream corporation www.opendream.co.jp. Agenda. Ruby Ruby on rails Ruby/Ruby on Rails training course in Japan. What's Ruby. Made in Japan programming language Created by Yukihiro Matsumoto, aka Matz Open Source Now Ruby is
E N D
Ruby/Ruby on Rails Yasushi Osonoi Open Dream corporation www.opendream.co.jp
Agenda • Ruby • Ruby on rails • Ruby/Ruby on Rails training course in Japan
What'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 Ruby http://www.ruby-lang.org/en/about/
Mailing list (English) • ruby-talk@ruby-lang.org English language discussion about Ruby • ruby-doc@ruby-lang.org Documentation standards and tools • ruby-cvs@ruby-lang.org Notifications of CVS commits to Ruby source • ruby-core@ruby-lang.orgMixed English/Japanese discussion of core implementation topics
Official web site • http://www.ruby-lang.org/en/
Ruby 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 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 Model Web Browser ① ② Controller DB ③ ④ View ①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 server Launch server Launch server Access to Ruby site http://Localhost:3000/
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