1 / 10

Ruby on Rails

Ruby on Rails. By S. Christopher Hellriegel. Overview. 1. What is Ruby on Rails?. 2. What is MVC?. 3. Simple example. 4. Wow, that was cool!. What is Ruby on Rails?. New, radical web development framework Built in Ruby and utilizes MVC architecture Practices DRY (Don’t Repeat Yourself)

len-morales
Download Presentation

Ruby on Rails

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ruby on Rails By S. Christopher Hellriegel

  2. Overview 1. What is Ruby on Rails? 2. What is MVC? 3. Simple example 4. Wow, that was cool!

  3. What is Ruby on Rails? • New, radical web development framework • Built in Ruby and utilizes MVC architecture • Practices DRY (Don’t Repeat Yourself) • Utilizes metaprogramming • Is fully database capable • Utilizes convention over configuration • Easy to use, especially when compared to other frameworks

  4. What is MVC? • Model-View-Controller Architecture • Breaks components up • Model -> encapsulates data • View -> presentation layer • Controller -> business logic, ties Model and View together

  5. Simple Example • Store Recipes! • First, create directory

  6. Example Continued… • cd into cookbook2 directory • Create database

  7. Example Continued… • Configure database

  8. Example Continued… • Test run server

  9. Example Continued… • Generate model object • Add scaffold into model

  10. Wow, that was cool! • It works!!

More Related