UPenn on Rails intro

1,537
-1

Published on

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

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
1,537
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • \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

    1. 1. Web Programming with Rails
    2. 2. • Why Rails?• Rails overview• Dealing with Data• Live Console and Testing• About the class and other resources
    3. 3. Why Rails?
    4. 4. A Philly Moment
    5. 5. Rails Overview
    6. 6. • Developed for BaseCamp by 37 signals• DSL for web applications
    7. 7. Controller
    8. 8. Controller
    9. 9. ControllerModel
    10. 10. ControllerModel
    11. 11. ControllerModel View
    12. 12. ControllerModel View
    13. 13. Convention over Configuration
    14. 14. GET /commentsCommentsController#index views/comments/index.html.erb
    15. 15. GET /comments/4CommentsController#showviews/comments/show.html.erb
    16. 16. GET /comments/4.jsCommentsController#showviews/comments/show.js.erb
    17. 17. Data
    18. 18. More Convention over Configuration
    19. 19. Super simple•C reate•R etreive•U pdate•D elete
    20. 20. Comment.create(:author => "mat")INSERT INTO comments(author) VALUES(mat);
    21. 21. Comment.find_by_author("mat")SELECT * FROM commentsWHERE author = mat;
    22. 22. c = Comment.find(1)c.update_attribute(:author, "mat")SELECT * FROM comments WHERE id = 1;UPDATE comments SET author = mat WHEREid = 1;
    23. 23. c = Comment.find(1)c.destroySELECT * FROM comments WHERE id = 1;DELETE FROM comments WHERE id = 1;
    24. 24. More data hotness• Schema management• Works the same across databases
    25. 25. rails console• Try out code live• Inspect your data using code
    26. 26. testing• Built into rails• Strong testing culture built into ruby
    27. 27. About the Class
    28. 28. Mat Schaffer mat@mashion.net @matschaffer matschaffer.com
    29. 29. Trotter Cashiontrotter@mashion.net @cashion trottercashion.com
    30. 30. Ryan Findleyryan@neomindstudio.com @neomindryan neomindlabs.com
    31. 31. Rough Plan: Build stuff• Week 1: Basic data and views• Week 2: User stories and testing• Week 3: Plugins• Week 4: Deployment and Scaling
    32. 32. Logistics
    33. 33. Homework submission via github:github.comAnd heroku:heroku.comWorking in pairs is encouraged!
    34. 34. Get help on the mailing list:groups.google.com/group/ upenn-on-railsOr IRC:irc.freenode.net#philly.rb
    35. 35. Recommendations• TryRuby.org• RailsForZombies.com• Agile Web Development with Rails• Why’s Poignant Guide to Ruby
    36. 36. What do you want to build?
    37. 37. Prerequisite: Accounts• https://github.com/signup/free• https://api.heroku.com/signup
    38. 38. 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
    39. 39. Test your installrails new mysitecd mysiterails server(open a browser to http://localhost:3000)
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×