14. What is Ruby-on-Rails ?
⢠Full-stack Web development framework in
Ruby
⢠Popularly known as Rails
⢠Current Version: Rails 2.3.5
⢠Rails 3.0 coming
15. Ruby-on-Rails MVC
Incoming
Request
Web Server
ActionController
(Controller)
ActiveRecord ActionView
xxx_controller.rb
(Model) (View)
xxx.rb .rhtml .erb
Database
16. Rails Design Principles
⢠Convention over Configuration (CoC)
⢠Common cases easily served
⢠Encourages standard practices
⢠Everything simpler and smaller
⢠Don't Repeat Yourself (DRY)
⢠Framework written around minimizing repetition
⢠Agile Development
⢠No compile, redeploy, restart cycles
⢠Testing built into the framework
17. JRuby
⢠Ruby interpreter written in Java
⢠Current Version: 1.4.0
⢠1.5 RC coming soon
⢠Ruby 1.8.7 compatible
⢠Some Ruby 1.9 support
⢠--1.9 flag (80%)
18. JRuby
⢠Solid performance ( ÍRuby 1.9)
⢠Startup is poor, execution usually better than
1.9
⢠Runs native threads
⢠Foreign Function Interface (FFI)for C
libraries
⢠Adopted from Rubinius, CRuby gem
⢠Runs Rails great!
19. Install JRuby
⢠CLI: Download & Unzip âjruby-
bin-1.4.0.zipâ from jruby.org
⢠NetBeans âAllâ or âRubyâ bundle
(pre-installed)
42. Not Just Rails ...
http://blogs.sun.com/arungupta/entry/totd_53_scaffold_in_merb
http://blogs.sun.com/arungupta/entry/totd_80_sinatra_crud_application