Let s get on rails
This presentation is the property of its rightful owner.
Sponsored Links
1 / 7

Let’s Get on Rails PowerPoint PPT Presentation


  • 105 Views
  • Uploaded on
  • Presentation posted in: General

Let’s Get on Rails. What’s Rails?. Web Development Frameworks Build on Ruby (so called Ruby on Rails) Agile Lightweight Heavily relies on Convention over configuration. Built On Some Key Principles. Rails follows some good principles MVC DRY Convention over configuration

Download Presentation

Let’s Get 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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Let s get on rails

Let’s Get on Rails


What s rails

What’s Rails?

  • Web Development Frameworks

  • Build on Ruby (so called Ruby on Rails)

  • Agile

  • Lightweight

  • Heavily relies on Convention over configuration


Built on some key principles

Built On Some Key Principles

  • Rails follows some good principles

    • MVC

    • DRY

    • Convention over configuration

    • “Unit Testing” – actually more than unit testing, though they call it that

    • Created bottom up – from real project, not designed by a committee


Convention over configuration

Convention Over Configuration

  • No heavy XML based configuration

  • As long as you follow convention, you need to do less work

    • A bit of a problem for newbies

    • You love it once you get used to it

  • You name files in a certain way, put them in specific places, …

  • You can deviate from conventions if you like, but the configuration is also using ruby, so fairly easy


Rails and mvc

Rails and MVC

  • Rails follows MVC

  • It actually does not simply promote MVC, it follows you home, sits with you, and makes sure you follow it

  • Controller receives request

  • You access model to manipulate data

  • It transfers control to a view for display

Controller

R

O

U

T

I

N

G

Browser

Model

Business rules

+ data

View


Mvc in rails

MVC in Rails

  • Convention over configuration

    • URL maps to an action on controller

  • Controller performs logic

  • Rails copies fields of controller to view

  • View generates response to be rendered

  • View: Action View

  • Controller: Action Controller

  • Model: Active Records


Let s build and learn

Let’s Build and Learn

  • We will build an application and learn about Rails, conventions, etc. using that example as a vehicle


  • Login