UPenn on Rails intro
Upcoming SlideShare
Loading in...5
×
 

UPenn on Rails intro

on

  • 1,648 views

Slides from the UPenn on Rails intro presentation done Nov 30, 2010.

Slides from the UPenn on Rails intro presentation done Nov 30, 2010.

Statistics

Views

Total Views
1,648
Views on SlideShare
1,509
Embed Views
139

Actions

Likes
0
Downloads
11
Comments
0

2 Embeds 139

http://railslessons.com 138
http://preview.railslessons.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

CC Attribution-ShareAlike LicenseCC Attribution-ShareAlike License

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
  • \n
  • \n
  • What are you interested/concerned about?\n- jobs\n- community involvement\n- notoriety\n- easy\n- fun\n
  • - BarCamp\n- TEDxPhilly\n- IndyHall\n- Philly.rb\n- Philly Startup Leaders\n- Philly Lambda\n- Hive76\n- Tecnically Philly\n- Philly Tech Week in April\n
  • - Cake PHP, Symphony?\n- Spring Roo, MVC?\n- Django?\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Or no database. Use sqlite to get even your designers up and running quickly.\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

UPenn on Rails intro UPenn on Rails intro Presentation Transcript

  • Web Programming with Rails
  • • Why Rails?• Rails overview• Dealing with Data• Live Console and Testing• About the class and other resources
  • Why Rails?
  • A Philly Moment
  • Rails Overview
  • • Developed for BaseCamp by 37 signals• DSL for web applications
  • Controller
  • Controller
  • ControllerModel
  • ControllerModel
  • ControllerModel View
  • ControllerModel View
  • Convention over Configuration
  • GET /commentsCommentsController#index views/comments/index.html.erb
  • GET /comments/4CommentsController#showviews/comments/show.html.erb
  • GET /comments/4.jsCommentsController#showviews/comments/show.js.erb
  • Data
  • More Convention over Configuration
  • Super simple•C reate•R etreive•U pdate•D elete
  • Comment.create(:author => "mat")INSERT INTO comments(author) VALUES(mat);
  • Comment.find_by_author("mat")SELECT * FROM commentsWHERE author = mat;
  • c = Comment.find(1)c.update_attribute(:author, "mat")SELECT * FROM comments WHERE id = 1;UPDATE comments SET author = mat WHEREid = 1;
  • c = Comment.find(1)c.destroySELECT * FROM comments WHERE id = 1;DELETE FROM comments WHERE id = 1;
  • More data hotness• Schema management• Works the same across databases
  • rails console• Try out code live• Inspect your data using code
  • testing• Built into rails• Strong testing culture built into ruby
  • About the Class
  • Mat Schaffer mat@mashion.net @matschaffer matschaffer.com
  • Trotter Cashiontrotter@mashion.net @cashion trottercashion.com
  • Ryan Findleyryan@neomindstudio.com @neomindryan neomindlabs.com
  • Rough Plan: Build stuff• Week 1: Basic data and views• Week 2: User stories and testing• Week 3: Plugins• Week 4: Deployment and Scaling
  • Logistics
  • Homework submission via github:github.comAnd heroku:heroku.comWorking in pairs is encouraged!
  • Get help on the mailing list:groups.google.com/group/ upenn-on-railsOr IRC:irc.freenode.net#philly.rb
  • Recommendations• TryRuby.org• RailsForZombies.com• Agile Web Development with Rails• Why’s Poignant Guide to Ruby
  • What do you want to build?
  • Prerequisite: Accounts• https://github.com/signup/free• https://api.heroku.com/signup
  • Prerequisite: Setup• Mac needs Xcode - http://developer.apple.com/tools/xcode• Windows maybe http://rubyinstaller.org/• RVM - rvm.beginrescueend.com• Or just use Ubuntu on VirtualBox
  • Test your installrails new mysitecd mysiterails server(open a browser to http://localhost:3000)