4. 4
Brief timeline
1993: Beginning of Ruby
1995: Ruby's first release
1999: Ruby's english documentation
2004: Creation of Ruby on Rails
Today: Ruby version 2.1, RoR version
4.0.2
5. 5
Clean & elegant syntax
> 2.times { print 'We love Ruby!' }
> We love Ruby!We love Ruby! => 2
6. New app, file structure
> rails new blog
> cd blog
> rails server
Already a functional
application!!
6
16. 16
What to see next
Codeschool Free Course: Rails for
Zombies www.railsforzombies.org
Tutorial: Creating a simple ToDo
application
www.arubystory.blogspot.gr
Book: Rails 4 in Action (Publication 28
Mar 2014)
19. 19
Install Ruby 2
Install gem ‘rails’ in console:
> gem install rails
Create new rails app in console:
> rails new blog
Change Directory (get in the app folder)
> cd blog
20. 20
Start the server
> rails s
Visit rails welcome page in the
browser:
localhost:3000
Create Scaffold Post, in the
console:
> rails g scaffold post
title:string body:text