Ruby versus Rails

14
Who’s Ruby and What’s Rails Allison Sheren twitter: @allie_p

description

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

Transcript of Ruby versus Rails

Page 1: Ruby versus Rails

Who’s Ruby and What’s Rails

Allison Sherentwitter: @allie_p

Page 2: Ruby versus Rails

!= the same thing

Page 3: Ruby versus Rails

The only search result:

Page 4: Ruby versus Rails

This is ruby

Not ruby Not ruby

Not rubyNot ruby

Page 5: Ruby versus Rails

Built off of Ruby (the original), there are expansion packs (Rails). Rails is an open source

web application framework built on Ruby.

Page 6: Ruby versus Rails

Ruby uses IRB, Gems, and is an object-oriented programming

language

The basics:

Like resource cards, dice,

resource map pieces, houses,

cities, and roads.

Page 7: Ruby versus Rails

What were all those

words you just said?

Page 8: Ruby versus Rails

Breaking it down- IRB is: interactive ruby. Lets you try out things using the command line

- Gems are: a packaged library or application.

Rails is a gem that you use with Ruby. Who has a favorite gem?

Jekyll

CompassSass

quiet assets

Rans

ack

Bootstrapfoundation

Sunspot

Page 9: Ruby versus Rails

- 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.

The New Stuff!

Page 10: Ruby versus Rails

What?!- MVC = model, view, controller

- DRY = Don’t repeat yourself

Page 11: Ruby versus Rails

ScaffoldingSame blueprint, Different house

Page 12: Ruby versus Rails

Rails combines Ruby with

HTML, CSS, and Javascript to create a web

app

Page 13: Ruby versus Rails

This is an example of

html with ruby code. It’s view code which is in rails but not

ruby.

Page 14: Ruby versus Rails

What to learn first?

My recommendation: Learn ruby firstthen add in rails

BUTthere are better tutorials

out there for ruby on rails that allow you to

actually build something