Ruby on Rails Intro
-
Upload
truong-vo -
Category
Technology
-
view
140 -
download
0
description
Transcript of Ruby on Rails Intro
Truong VoSoftware Engineer – Tech Propulsion Labshttp://[email protected]
What is Ruby on Rails?The MVC ArchitectureRESTDemosLearning ResourcesQuestions
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!
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
REpresentational State Transfer describes resources (in our case URLs)
on which we can perform actionsCreate, Read, Update, Delete
(CRUD)
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
ProTracker
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
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
Questions ?