Getting started with Rails (1), Season 2

627 views
579 views

Published on

This is the keynote file of offline lecture on Rails Guides at the 1st round of ROR Lab. Season 2

Published in: Education, Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
627
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Getting started with Rails (1), Season 2

    1. 1. ROR Lab. Season 2 - The 1st Round -Getting Started with Rails June 23, 2012 Hyoseong Choi ROR Lab.
    2. 2. ROR Lab Intro• 1st Lab, Nov. 12, 2011• http://rorlab.org/dry_labs/1• website, http://rorlab.wordstory.net• http://rorlab.org• Season 1, to Biweekly Lectures 14 and Special Lecture 1. ROR Lab.
    3. 3. Translation Work• http://rorlab.org/rails_guides/• http://railscasts.com • https://github.com/defaude/ asciicasts.com-translations/wiki/Korean ROR Lab.
    4. 4. Blog• http://happyrails.rorlab.org ROR Lab.
    5. 5. Season 2• Rails Guides, MVC• Blog project, 10-minute presentation• Useful Gem Sharing ROR Lab.
    6. 6. Getting started ROR Lab.
    7. 7. HistoryC 1971Perl 1987Python 1991 Django 2003Ruby 1993 Ruby on Rails 2004Java 1995PHP 1995 http://ASP 1998 david.heinemeier hansson.com/JSP 1999 ROR Lab.
    8. 8. What is Rails?• a web application development framework• written in the Ruby language• less code• more fun• “The Rails Way” : increase in productivity ROR Lab.
    9. 9. MVC• Model• View• Controller ROR Lab.
    10. 10. Rails Philosophy ROR Lab.
    11. 11. Rails Philosophy DRY ROR Lab.
    12. 12. Rails Philosophy DRY CoC ROR Lab.
    13. 13. Rails Philosophy DRY CoC REST http://ko.wikipedia.org/wiki/REST ROR Lab.
    14. 14. REST DELETE /photos/17• A Network Architecture• REpresentational State Transfer• Two main principles • URL resources • Transferring the state of resource ROR Lab.
    15. 15. Dev Environment• OS : Mac > Windows• Ruby : ~ 1.9.3-p125• Ruby on Rails : ~ 3.2.6• RVM : ruby version manager with rubygems• Git : as a source code manager(SCM) ROR Lab.
    16. 16. Rails Installer• For Windows• For Mac http://railsinstaller.org/ - Engine Yard ROR Lab.
    17. 17. Code Editors• Textmate• Vim• Sublime2• IDE • Rubymine • Radrails ROR Lab.
    18. 18. Referenceshttp://rorlab.org/tutorials/5 ROR Lab.
    19. 19. Creatinga New Rails Project$ gem install rails # as the root user$ rails -vrails 3.2.6$ rails new blog -d mysqldefault database : SQLite3 a lightweight serverless database ROR Lab.
    20. 20. ROR Lab.
    21. 21. ROR Lab.
    22. 22. Config a DB config/database.yml development: adapter: mysql2 encoding: utf8 reconnect: false database: happyrails_development pool: 5• development username: root password: socket: /tmp/mysql.sock test:• test adapter: mysql2 encoding: utf8 reconnect: false database: happyrails_test pool: 5• production username: root password: socket: /tmp/mysql.sock production: adapter: mysql2 encoding: utf8 reconnect: false database: happyrails_production pool: 5 username: root password: ROR Lab. socket: /tmp/mysql.sock
    23. 23. Creating DB$ rake db:create$ rake -T ROR Lab.
    24. 24. $ rails server http://localhost:3000 Hello, Rails!WEBrick ROR Lab.
    25. 25. Live DemoCreating a project ~ First model, Post ROR Lab.
    26. 26. 감사합니다.
    27. 27.   ROR Lab.

    ×