Ruby on Rails Intro

10
Truong Vo Software Engineer – Tech Propulsion Labs http://www.techpropulsionlabs.com [email protected]

description

 

Transcript of Ruby on Rails Intro

Page 1: Ruby on Rails Intro

Truong VoSoftware Engineer – Tech Propulsion Labshttp://[email protected]

Page 2: Ruby on Rails Intro

What is Ruby on Rails?The MVC ArchitectureRESTDemosLearning ResourcesQuestions

Page 3: Ruby on Rails Intro

Ruby is a object-oriented and dynamic programming language

Rails is a web development framework written in the Ruby language

Open Source and Free

Focused on developer productivity and getting the job done – fast!

Page 4: Ruby on Rails Intro

1. http://localhost:3000/projects/12. Routing finds Project Controller3. Controller interacts with model4. Controller invokes view5. Render next browser screen

Browser

Active Record Model

Active Record Model

Project Controller

Project Controller

Display Project View

Display Project View

Database

Database

Routing

1

2

3 4

5

Page 5: Ruby on Rails Intro

REpresentational State Transfer describes resources (in our case URLs)

on which we can perform actionsCreate, Read, Update, Delete

(CRUD)

Page 6: Ruby on Rails Intro

HTTP verb

URL controller

action used for

GET /projects Projects index display a list of all projects

GET /projects/new

Projects new return an HTML form for creating a new project

POST /projects Projects create create a new project

GET /projects/1 Projects show display a specific project

GET /projects/1/edit

Projects edit return an HTML form for editing a project

PUT /projects/1 Projects update update a specific project

DELETE /projects/1 Projects destroy delete a specific project

Page 7: Ruby on Rails Intro

ProTracker

Page 8: Ruby on Rails Intro

Books – the theory Agile Web Development with Rails: from basic to

intermediate The Rails Way: deep and broad Programming Ruby: good reference not for

learning Ruby for Rails: most thorough and deep Ruby

book. Not quite easy to read Books – learn from these others

Practical Rails Project Rails Recipes, Advance Rails Recipes: can be

used as reference to specific problems Building Dynamic Web 2.0 Websites with Ruby

on Rails

Keep up with the Trend

Page 9: Ruby on Rails Intro

http://guides.rubyonrails.org http://railscasts.com/ - best free Ruby on

Rails Screencasts github.com: when doing something, good

idea to try to find on github. Large change is someone already done.

Wiki/Google Group (global/per project)…

Rails change so fast, need to get up-to-dateBuild your old resource and share to others

Keep up with the Trend

Page 10: Ruby on Rails Intro

Questions ?