This document outlines a training course for learning Ruby on Rails. It introduces Ruby and Rails, then describes a 7 course curriculum covering the basics of building a forum application with user authentication and authorization, file uploads, pagination, deployment, and setting up a development environment. Each course includes links to additional resources and example applications. The goal is to provide students with the fundamental skills and knowledge needed to develop web applications using the Ruby on Rails framework.
7. Ruby on Rails (2)
• A web framework for Ruby
• MVC architecture
• Agile software development
- Don't Repeat Yourself
- Convention over Configuration
7
15. Course 0: Git
• Open a project in github.
• Practice git useful commands.
- pull, push, commit, branch, add, checkout,
merge, status, diff, grep
* Peepcode Git Pro Git
* http://wildjcrt.pixnet.net/blog/post/
26458848
15
16. Course 0: Editor
• vgod Vim
- http://blog.vgod.tw/2009/12/08/vim-cheat-
sheet-for-programmers/
* http://c9s.blogspot.com/2009/08/vim-hacks-
coscup.html
* Oreilly vi vim
* Pragmatic TextMate: Power Editing for the Mac
16
17. Course 0: Linux CLI
• Peepcode Meet the Command Line
Advanced Command Line
17
18. Reference before course
* http://rails.pixnet.net/blog/category/list/1603567
* http://wildjcrt.pixnet.net/blog/category/list/1431631
* Ruby Programming — Ruby
* Ruby for Rails - Rails Ruby
* The Well-Grounded Rubyist
* Rails
* Agile Web Development with Rails, Third Edition
* The Rails Way
* Ruby Pocket Reference
* Rails Recipes
* Advanced Rails Recipes: 84 New Ways to Build Stunning Rails Apps
18
19. Course 1 (1)
• Create a new rails project.
• Setup configuration.
- database.yml
- .gitignore
• Push to github.
* http://rails.pixnet.net/blog/post/22953827
19
20. Course 1 (2)
• Complete a basic forum.
- Forum model CRUD (scaffold)
- Post model CRUD (scaffold)
- Setting routes in this format :
http://example.org/forums/1/posts/2
* http://rails.pixnet.net/blog/post/22956704
* http://ihower.tw/training/rails-tutoral.html
20
21. Course 2
• User can login / logout / signup.
- Guest can view all posts.
- Post needs to login forum.
- User can only edit and destroy his own
posts.
• http://github.com/technoweenie/restful-
authentication plugin DRY!
21
22. Course 3
• Forum posts order and paginate.
- params, pagination
- counter_cache
- named_scope :recent
• http://github.com/mislav/will_paginate plugin
* http://railscasts.com/episodes/23-counter-cache-
column
* http://railscasts.com/episodes/108-named-scope
22
29. Another Rails Training( )
Ruby on Rails
Ruby on Rails
http://ihower.tw/ http://ihower.tw/
rails2/ rails3/
*designed by ihower
http://ihower.tw/blog/
29
30. Related Link
• Ruby on Rails? 2009
- http://rails.pixnet.net/blog/post/27997778
• Ruby on Rails 2009
- http://rails.pixnet.net/blog/post/27997784
• Rails
- http://wildjcrt.pixnet.net/blog/post/26624950
• Rails
- http://wildjcrt.pixnet.net/blog/post/27037216
30