Ruby versus Rails

453 views

Published on

Telling the difference between Ruby and Rails and how they work together. Useful for new programmers.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
453
On SlideShare
0
From Embeds
0
Number of Embeds
17
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • {}
  • Ruby versus Rails

    1. 1. Who’s Ruby and What’s Rails Allison Sheren twitter: @allie_p
    2. 2. the same != thing
    3. 3. The only search result:
    4. 4. Not ruby Not ruby This is ruby Not ruby Not ruby
    5. 5. Built off of Ruby (the original), there are expansion packs (Rails). Rails is an open source web application framework built on Ruby.
    6. 6. The basics: Ruby uses IRB, Gems, and is an objectoriented programming language Like resource cards, dice, resource map pieces, houses, cities, and roads.
    7. 7. What were all those words you just said?
    8. 8. Breaking it down - Gems are: a packaged library or application. Rails is a gem that you use with Ruby. Who has a favorite gem? Bootstrap l l ky ss Sunspot e afo S J und ati Compass quiet asseton s nsack Ra - IRB is: interactive ruby. Lets you try out things using the command line
    9. 9. The New Stuff! - follows rules like MVC and DRY - uses Rails console - can query a database - uses things like rails generate (outputs generic code) or a scaffold Includes special things like ships, extra water, Star Trek related pieces, etc.
    10. 10. What?! - MVC = model, view, controller - DRY = Don’t repeat yourself
    11. 11. Scaffoldin g Same blueprint, Different house
    12. 12. Rails combines Ruby with HTML, CSS, and Javascript to create a web app
    13. 13. This is an example of html with ruby code. It’s view code which is in rails but not ruby.
    14. 14. What to learn first? My recommendation: Learn ruby first then add in rails BUT there are better tutorials out there for ruby on rails that allow you to actually build something

    ×