2. About Me
• a.k.a “xdite”
• http://blog.xdite.net
• http://plurk.com/xdite
• http://github.com/xdite
• Ruby on Rails Developer since 2007
• Rails Developer of HTC
14. Prerequisites
• Test Coverage
• Rails 1.8.7 and Rails 3
• RackEnv ( using Passenger )
• git remote branch
• Strong Heart and Excellent Ruby Skill.
15. What will you face? (major)
• Query API change.
• HTML auto Escape
• Routing Changes
• Unobtrusive Javascript
• Plugin Broken ( internal API Channges )
16. What can you do? ( major)
• use Rails Best Practice.
• writing tests
• move config.gem to Gemfile
• move rjs to unobtrusive javascripts.
• organize the same logic in HTML to helpers.
• replacing plugin to gem.
• survey plugin for rails3 ( railsplugins.org)
17. Rails Best Practices
• Move code from Controller to Model
• Extract into Module
• Never logic code in Views
• Organize Helper files
18. STEP
• install rails3
• modified httpd for RackEnv
• git branch rails3
• run rails-upgrade check, and document it.
• backup files ( route.rb, application.rb ... )
• rails new .
• run test, and fix. till finish......
20. Because...
• Not writing test (!!!)
• Writing model logic in views.(!!!)
• Post.find(:all).map{ |c| [c.name, c.id] }
• Copy & Paste anywhere(!!!)
• broken everywhere based on the same thing
• Fixing bug and refactoring project in the
same time.(!!!!!!!!!!!!!)