Ruby versus Rails

Preview:

DESCRIPTION

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

Citation preview

Who’s Ruby and What’s Rails

Allison Sherentwitter: @allie_p

!= the same thing

The only search result:

This is ruby

Not ruby Not ruby

Not rubyNot ruby

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

web application framework built on Ruby.

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

language

The basics:

Like resource cards, dice,

resource map pieces, houses,

cities, and roads.

What were all those

words you just said?

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

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

What?!- MVC = model, view, controller

- DRY = Don’t repeat yourself

ScaffoldingSame blueprint, Different house

Rails combines Ruby with

HTML, CSS, and Javascript to create a web

app

This is an example of

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

ruby.

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