Advanced Rails - Two Day
Welcome! First, open this page in your browser:
http://tutorials.jumpstartlab.com/paths/advanced_rails_two_day.html
Is this the right session for you?
You belong here if:
- You feel very comfortable working with Ruby and Rails
- You have built several Rails projects or spent months on a real project
- You’re interested in some new ideas
- You’re willing to wrestle with things that might not work the first time
This is not a good session for you if:
- You’re new to Ruby/Rails
- You want everything to go smoothly
Are you prepared?
You need to:
- Join the chatroom at http://jumpstartlab.com/chat
- Follow http://tutorials.jumpstartlab.com/topics/environment/environment.html to setup Ruby 1.9.2 and Rails 3.2
- Follow http://tutorials.jumpstartlab.com/topics/environment/advanced_tools.html to setup other specialty tools
- To setup the sample project…
Get the Blogger project from GitHub and run setup procedures:
1 2 3 4 5 |
|
All existing tests should pass. Optionally, run the tests continuously while developing by running guard
The Plan
We’ll break the two days into several discrete segments, themselves broken into a mix of direct instruction and self-directed practice.
Day 1 - The Model Layer
Better Models with Modules
http://tutorials.jumpstartlab.com/topics/models/modules.html
Generating Better Queries
http://tutorials.jumpstartlab.com/topics/performance/queries.html
Facade Pattern
http://tutorials.jumpstartlab.com/topics/models/facade_pattern.html
Worker Pattern
http://tutorials.jumpstartlab.com/topics/performance/background_jobs.html
Evaluating Performance with Metrics
http://tutorials.jumpstartlab.com/topics/performance/measuring.html
Using the Debugger
http://tutorials.jumpstartlab.com/topics/debugging/debugger.html
Day 2 - Controllers and Views
Slimming Controllers
http://tutorials.jumpstartlab.com/topics/controllers/slimming_controllers.html
Decorator Pattern with Draper
http://tutorials.jumpstartlab.com/topics/decorators.html
View Caching
http://tutorials.jumpstartlab.com/topics/performance/caching.html
Pagination
http://tutorials.jumpstartlab.com/topics/better_views/pagination.html
ERB and HAML
http://tutorials.jumpstartlab.com/topics/better_views/erb_and_haml.html
Understanding Partials
http://tutorials.jumpstartlab.com/topics/better_views/view_partials.html
Contributing
You’re strongly invited to help improve these tutorials, even while we’re running the session. All the text is available on GitHub, so you can edit it right in the browser. Hit the "Feedback" tab on the left side of any page.
Enjoy!