Ruby on Rails Intro
-
Upload
truong-vo -
Category
Technology
-
view
137 -
download
0
description
Transcript of Ruby on Rails Intro
![Page 1: Ruby on Rails Intro](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/1.jpg)
Truong VoSoftware Engineer – Tech Propulsion Labshttp://[email protected]
![Page 2: Ruby on Rails Intro](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/2.jpg)
What is Ruby on Rails?The MVC ArchitectureRESTDemosLearning ResourcesQuestions
![Page 3: Ruby on Rails Intro](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/3.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/4.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/7.jpg)
ProTracker
![Page 8: Ruby on Rails Intro](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.us/reader036/viewer/2022062613/5452a45daf7959ed5f8b529d/html5/thumbnails/10.jpg)
Questions ?