SlideShare a Scribd company logo
1 of 10
Truong Vo
Software Engineer – Tech Propulsion Labs
http://www.techpropulsionlabs.com
truong.vo@techpropulsionlabs.com
 What is Ruby on Rails?
 The MVC Architecture
 REST
 Demos
 Learning Resources
 Questions
 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/1
2.   Routing finds Project Controller               1
3.   Controller interacts with model                             Browser
4.   Controller invokes view       Routing
5.   Render next browser screen         2

                                     Project
                                      Project
                                   Controller
                                    Controller                   5


                                   3         4

                       Active Record
                       Active Record                Display
                                                    Display
      Database
      Database             Model
                           Model                 Project View
                                                  Project View
 REpresentational State Transfer
  describes resources (in our case URLs) on which
   we can perform actions
 Create, Read, Update, Delete (CRUD)
HTTP verb   URL                controller   action    used for

GET         /projects          Projects     index     display a list of all projects


                                                      return an HTML form for creating a new
GET         /projects/new      Projects     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
Keep up with the Trend



   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-date
       Build your old resource and share to others
Questions ?

More Related Content

What's hot

What's hot (20)

Git Series. Episode 3. Git Flow and Github-Flow
Git Series. Episode 3. Git Flow and Github-FlowGit Series. Episode 3. Git Flow and Github-Flow
Git Series. Episode 3. Git Flow and Github-Flow
 
A prentation on github
A prentation on githubA prentation on github
A prentation on github
 
Workshop on Git and GitHub
Workshop on Git and GitHubWorkshop on Git and GitHub
Workshop on Git and GitHub
 
Git workflows presentation
Git workflows presentationGit workflows presentation
Git workflows presentation
 
Using Web Software Architecture in Traditional Desktop App Development
Using Web Software Architecture in Traditional Desktop App DevelopmentUsing Web Software Architecture in Traditional Desktop App Development
Using Web Software Architecture in Traditional Desktop App Development
 
Git flow
Git flowGit flow
Git flow
 
Gerrit linuxtag2011
Gerrit linuxtag2011Gerrit linuxtag2011
Gerrit linuxtag2011
 
Introduction to Grails
Introduction to GrailsIntroduction to Grails
Introduction to Grails
 
Git branch management
Git branch managementGit branch management
Git branch management
 
Intro to Git & GitHub
Intro to Git & GitHubIntro to Git & GitHub
Intro to Git & GitHub
 
Git-flow workflow and pull-requests
Git-flow workflow and pull-requestsGit-flow workflow and pull-requests
Git-flow workflow and pull-requests
 
A quick introduction to GraphQL
A quick introduction to GraphQLA quick introduction to GraphQL
A quick introduction to GraphQL
 
Background info on git / github
Background info on git / githubBackground info on git / github
Background info on git / github
 
Git development workflow
Git development workflowGit development workflow
Git development workflow
 
Advance workshop on git
Advance workshop on gitAdvance workshop on git
Advance workshop on git
 
How GraphQL influences your product development on all levels
How GraphQL influences your product development on all levelsHow GraphQL influences your product development on all levels
How GraphQL influences your product development on all levels
 
Git Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and TagsGit Series. Episode 2. Merge, Upstream Commands and Tags
Git Series. Episode 2. Merge, Upstream Commands and Tags
 
Hypermedia APIs from Event-Driven CQRS Systems
Hypermedia APIs from Event-Driven CQRS SystemsHypermedia APIs from Event-Driven CQRS Systems
Hypermedia APIs from Event-Driven CQRS Systems
 
Continuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCDContinuous Delivery with Chef and GoCD
Continuous Delivery with Chef and GoCD
 
Git
GitGit
Git
 

Similar to Ruby on Rails Intro

Ruby On Rails Tutorial
Ruby On Rails TutorialRuby On Rails Tutorial
Ruby On Rails Tutorial
sunniboy
 
Ricardo Sanchez - Ruby projects of interest for devops
Ricardo Sanchez - Ruby projects of interest for devopsRicardo Sanchez - Ruby projects of interest for devops
Ricardo Sanchez - Ruby projects of interest for devops
SVDevOps
 
Ruby projects of interest for DevOps
Ruby projects of interest for DevOpsRuby projects of interest for DevOps
Ruby projects of interest for DevOps
Ricardo Sanchez
 
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
Atlassian
 
Ruby Rails Web Development.pdf
Ruby Rails Web Development.pdfRuby Rails Web Development.pdf
Ruby Rails Web Development.pdf
Ayesha Siddika
 

Similar to Ruby on Rails Intro (20)

Rails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - BloggerRails Rookies Bootcamp - Blogger
Rails Rookies Bootcamp - Blogger
 
Ruby Rails Web Development
Ruby Rails Web DevelopmentRuby Rails Web Development
Ruby Rails Web Development
 
Ruby On Rails - Rochester K Linux User Group
Ruby On Rails - Rochester K Linux User GroupRuby On Rails - Rochester K Linux User Group
Ruby On Rails - Rochester K Linux User Group
 
Introduction to Ruby on Rails
Introduction to Ruby on RailsIntroduction to Ruby on Rails
Introduction to Ruby on Rails
 
Ruby On Rails Tutorial
Ruby On Rails TutorialRuby On Rails Tutorial
Ruby On Rails Tutorial
 
Ruby on rails for beginers
Ruby on rails for beginersRuby on rails for beginers
Ruby on rails for beginers
 
Intro to Rails Give Camp Atlanta
Intro to Rails Give Camp AtlantaIntro to Rails Give Camp Atlanta
Intro to Rails Give Camp Atlanta
 
Ricardo Sanchez - Ruby projects of interest for devops
Ricardo Sanchez - Ruby projects of interest for devopsRicardo Sanchez - Ruby projects of interest for devops
Ricardo Sanchez - Ruby projects of interest for devops
 
Ruby projects of interest for DevOps
Ruby projects of interest for DevOpsRuby projects of interest for DevOps
Ruby projects of interest for DevOps
 
Aspose pdf
Aspose pdfAspose pdf
Aspose pdf
 
TorqueBox
TorqueBoxTorqueBox
TorqueBox
 
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
 
Ruby Rails Web Development.pdf
Ruby Rails Web Development.pdfRuby Rails Web Development.pdf
Ruby Rails Web Development.pdf
 
BUILDING WEB APPS WITH ASP.NET MVC AND NOSQL
BUILDING WEB APPS WITH ASP.NET MVC AND NOSQLBUILDING WEB APPS WITH ASP.NET MVC AND NOSQL
BUILDING WEB APPS WITH ASP.NET MVC AND NOSQL
 
Fluxible
FluxibleFluxible
Fluxible
 
Ruby Rails Web Development.pdf
Ruby Rails Web Development.pdfRuby Rails Web Development.pdf
Ruby Rails Web Development.pdf
 
OpenNTF.Org Third Generation
OpenNTF.Org Third GenerationOpenNTF.Org Third Generation
OpenNTF.Org Third Generation
 
Ruby on Rails introduction
Ruby on Rails introduction Ruby on Rails introduction
Ruby on Rails introduction
 
Ruby On Rails
Ruby On RailsRuby On Rails
Ruby On Rails
 
Making share point rock with angular and react
Making share point rock with angular and reactMaking share point rock with angular and react
Making share point rock with angular and react
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Ruby on Rails Intro

  • 1. Truong Vo Software Engineer – Tech Propulsion Labs http://www.techpropulsionlabs.com truong.vo@techpropulsionlabs.com
  • 2.  What is Ruby on Rails?  The MVC Architecture  REST  Demos  Learning Resources  Questions
  • 3.  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!
  • 4. 1. http://localhost:3000/projects/1 2. Routing finds Project Controller 1 3. Controller interacts with model Browser 4. Controller invokes view Routing 5. Render next browser screen 2 Project Project Controller Controller 5 3 4 Active Record Active Record Display Display Database Database Model Model Project View Project View
  • 5.  REpresentational State Transfer  describes resources (in our case URLs) on which we can perform actions  Create, Read, Update, Delete (CRUD)
  • 6. HTTP verb URL controller action used for GET /projects Projects index display a list of all projects return an HTML form for creating a new GET /projects/new Projects 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
  • 8. Keep up with the Trend  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
  • 9. 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-date Build your old resource and share to others