Ruby On Rails Overview

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Notes on slide 1

    http://www.flickr.com/photos/foreversouls/2357763471/sizes/l/

    def is_friday?
    today = Date.today
    friday = today.end_of_week - 2.days
    today == friday
    end

    today = Date.today

    puts "I'm in a good mood” if today.is_friday?

    puts "I'm in a bad mood" unless today.is_friday?

    today.is_friday? ? "great mood" : "bad mood"

    Public and private methods don’t “really” exist… you can use send to call them. Private and protected are really just ideas… I intend for you not to call this because I may change this and you should not rely on it

    Rails isn’t academic software. Every feature is extracted from a plugin or a working project from 37signals

    http://www.flickr.com/photos/dotdoubledot/1979443914/sizes/l/

    http://www.flickr.com/photos/redjar/113152393/

    1 Favorite

    Ruby On Rails Overview - Presentation Transcript

    1. Ruby on Rails Overview Jon Kinney Avastone Technologies
    2. What is it?
    3. Ruby the Programming Language Rails the Web Framework
    4. Language Framework Ruby Rails C# WebForms C# ASP.NET MVC PHP Zend Java Struts Java Spring MVC
    5. What’s the big deal?
    6. Fun! Easy! Productive!
    7. Why should I care?
    8. Broaden your Horizons
    9. Learn from other frameworks and languages Be a better
    10. What is Ruby?
    11. Object Oriented Java Ruby Python VB.NET C++ C#
    12. Dynamically Typed Not compiled Code is executed at run time
    13. The Ruby Language
    14. The .each Method
    15. Everything’s an objec
    16. Defining methods Everything in ruby is true except nil and false Ruby automatically returns the last statement in a method
    17. The “unless” statement
    18. “if” at the end “else” at the end
    19. Garbage Object Collection Oriented Good Public and IDE’s Private Methods Similar to C#
    20. No curly No braces or Compile- semicolon time s checking Dynamic Interpreted Typing Different from C#
    21. What is Rails?
    22. Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration
    23. Model View Controller Framework
    24. Model req ues t Controller res po n se View
    25. All in one! ASP.NET Ruby on Rails MVC Presentation ASP.NET Rails MVC Database migrations T-SQL Rails Data access & LINQ to Rails persistence Entities Unit testing NUnit Rails Testing web pages (?) Rails Testing cookies and (?) Rails session state
    26. Opinionated Software Not Academic Convention over Configuration
    27. Conventions • Singular camel cased model/class names • Plural lower case and underscored • Db table names • Variable names • Method names • Primary key called “id” • Db fields called created_at and updated_at • Get free timestamps when performing
    28. D.R.Y. Don’t Repeat Yourself Each piece of knowledge should have one and only one place to live
    29. An object that wraps a row in a database table or view, encapsulates the database access, and adds domain logic on that data. ~ Martin Fowler Active Record
    30. Running Rails
    31. Runs on ….
    32. Store stuff in … And others …
    33. Write code with ….
    34. Walkthrough Creating a Rails Project in 3 Steps
    35. Step 1
    36. They ALL look like
    37. Step 2 (optional) # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlite3 pool: 5 timeout: 5000 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: sqlite3 database: db/test.sqlite3 pool: 5 timeout: 5000 production: adapter: sqlite3 database: db/production.sqlite3 pool: 5 timeout: 5000
    38. Step 3 – Boot Mongrel Or use the Passenger Preference Pane for Apache2
    39. Tada!!
    40. DEMO Cookbook
    SlideShare Zeitgeist 2009

    + jonkinneyjonkinney Nominate

    custom

    157 views, 1 favs, 0 embeds more stats

    This is a slide deck that I modified to give some g more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 157
      • 157 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 4
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags