• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
UT on Rails3 2010- Week 1
 

UT on Rails3 2010- Week 1

on

  • 1,298 views

This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at ...

This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/

Statistics

Views

Total Views
1,298
Views on SlideShare
1,162
Embed Views
136

Actions

Likes
1
Downloads
30
Comments
0

2 Embeds 136

http://www.thinkbohemian.com 135
http://atxwebshow.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />
  • <br />

UT on Rails3 2010- Week 1 UT on Rails3 2010- Week 1 Presentation Transcript

  • Rails Summer of Code Week 1 Richard Schneeman - @ThinkBohemian
  • Rails - Week 1 • Rails Architecture • MVC (Model View Controller) • ORM (Object Relational Mapping) • RESTful (REpresentational STate) • Ruby • Versus Rails • Is Object Oriented Richard Schneeman - @ThinkBohemian
  • Rails Architecture • Terminology • DRY • Convention over Configuration • Rails Architecture • MVC (Model View Controller) • ORM (Object Relational Mapping) • RESTful (REpresentational State Transfer) Richard Schneeman - @ThinkBohemian
  • DRY Don’t Repeat Yourself Reuse, don’t re-invent the... Richard Schneeman - @ThinkBohemian
  • Convention over Configuration Decrease the number of decisions needed, gaining simplicity but without losing flexibility. Richard Schneeman - @ThinkBohemian
  • Model-View-Controller • Isolates “Domain Logic” • Can I See it? • View • Is it Business Logic? • Controller • Is it a Reusable Class Logic? • Model Richard Schneeman - @ThinkBohemian
  • Model-View-Controller • Generated By Rails • Grouped by Folders • Connected “AutoMagically” • Models • Views • Controllers • Multiple Views Per Controller Richard Schneeman - @ThinkBohemian
  • Object Relational Mapping • Maps database backend to ruby objects • ActiveRecord (Rail’s Default ORM) >> userVariable = User.where(:name => "Bob") Generates: SELECT "users".* FROM "users" WHERE (name = 'bob') >> userVariable.name => Bob Richard Schneeman - @ThinkBohemian
  • Object Relational Mapping • >> userVariable = User .where(:name => "Bob") models/user.rb class User < ActiveRecord::Base end the User class inherits from ActiveRecord::Base Richard Schneeman - @ThinkBohemian
  • Object Relational Mapping • >> userVariable = User. where(:name => "Bob") where is the method that looks in the database AutoMagically in the User Table (if you made one) Richard Schneeman - @ThinkBohemian
  • RESTful REpresentational State Transfer • The state of the message matters • Different state = different message “You Again?” “You Again?” Richard Schneeman - @ThinkBohemian
  • RESTful REpresentational State Transfer • Servers don’t care about smiles • They do care about how you access them • (HTTP Methods) • GET • PUT • POST • DELETE Richard Schneeman - @ThinkBohemian
  • RESTful REpresentational State Transfer • Rails Maps Actions to HTTP Methods • GET - index, show, new • PUT - update • POST - create • DELETE - destroy Richard Schneeman - @ThinkBohemian
  • Ruby Versus Rails • Ruby - Is a programming Language • Like C# or Python • Can be used to program just about anything, • Rails - Is a Framework • Written using Ruby • Provides common web functionality Richard Schneeman - @ThinkBohemian
  • Questions? Richard Schneeman - @ThinkBohemian