Ruby on Rails - • Breaks components up • Model>...

Info icon This preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Ruby on Rails By S. Christopher Hellriegel
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Overview 1. What is Ruby on Rails? 1. What is Ruby on Rails? 2. What is MVC? 2. What is MVC? 3. Simple example 3. Simple example 4. Wow, that was cool! 4. Wow, that was cool!
Image of page 2
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
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
What is MVC? Model-View-Controller Architecture
Image of page 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 8
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: • Breaks components up • Model -> encapsulates data • View -> presentation layer • Controller -> business logic, ties Model and View together Simple Example • Store Recipes! • First, create directory Example Continued… • cd into cookbook2 directory • Create database Example Continued… • Configure database Example Continued… • Test run server Example Continued… • Generate model object • Add scaffold into model Wow, that was cool! • It works!!...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern