Rails 3 in a Nutshell
Copyright © 2012 Cody Fauser, James MacAulay, Edward Ocampo-Gooding, and John Guenin
This work has been released under the Creative Commons Attribution-Noncommercial license.
Abstract
Note
You are reading the text of an O'Reilly book that's under development. The authors are publishing the book to this site as it's being written, and we're putting it here to get feedback from you. This book uses the Open Feedback Publishing System (OFPS), an O'Reilly experiment that tries to bridge the gap between private manuscripts and public blogs.
Next to every paragraph, there is a link you can use to comment on what you're reading. We are grateful for any feedback you have: questions, comments, suggestions, and corrections are all welcome and appreciated.
Rails in a Nutshell is a concise introduction to Rails, an overview of commands and configurations, and a guide to the parts of Rails you’ll be using every day.
Full of examples and explanations, this book kicks your skills into high-gear by showing you how to take advantage of the Model-View-Controller concept with tiny but expressive bits of Ruby that power some of the world’s biggest and fastest web services.
Fast to launch and a pleasure to get there are hallmarks of working with Rails. Rails in a Nutshell gets the right stuff in your hands quickly and without fuss, so you can experience it yourself.
Follow the progress of the book on Twitter twitter.com/railsnutshell, at railsinanutshell.com, and at the book's catalog page.
- 1. Preface
- 2. Rails in a Nutshell
- Architecture
- Getting Started
- Generate a Rails application
- Start up your app
- Generate a scaffolded resource
- Running database migrations
- Check out your working application
- Setting up a default route
- XSS protection
- View helpers
- Model validations
- RSS feeds & request formats
- View layouts
- Routes
- Model associations
- Nested resources
- Partials
- AJAX
- The Console
- Summary
- 3. The Core Bits
- 4. Active Model
- 5. Active Record
- Your interfaces to Active Record
- Connecting to a Database
- A Model's Names
- Developing your Database Schema with Migrations
- Associations
- Attributes
- Validations
- Callbacks
- Single Table Inheritance
- Aggregation
- Creating
- Finding the records you want
- Constructing Relations
- Calculations
- Updating
- Deleting
- Named Scopes
- Transactions
- Dynamic Scopes
- Observers
- 6. Action Controller
- 7. Routing
- 8. Debugging and Testing
- 9. Testing
- 10. Debugging
- 11. Production Environments
- 12. Performance Tuning
- 13. Profiling
- 14. Database Tuning
- 15. Caching
- 16. Rack
- 17. More Rails
- 18. Action Mailer
- 19. Active Resource
- 20. Active Support
- 21. Internationalization
- 22. Plugins
- 23. Appendix
- 24. Installing Rails
- 25. Tools
- 26. cURL
- 27. memcached configuration for fun and profit
- 28. HTTP Status Codes




View 5 comments




are the books docbook sources available?
Hi Pratik,
The docbook sources are heavily modified by some code-generation tools and other stuff that pieces it all together, so I imagine they wouldn't be that useful.
Once the first edition is out, ping us again and we'll see if we can figure something out.
Post is nicely written and it contains many good things for me. I am glad to find your impressive way of writing the post. Now it become easy for me to understand and implement the concept.Essay writing
Edited on June 14, 2011, 3:45 p.m. PDT
Your blog is great. Your thoughts are also very good and i am very inspired from your post. That is why I visit this blog again and again and will come back in future too.
Edited on March 7, 2012, 6:17 p.m. PST
I've never considered that surfing can be so much helpful and entertaining. I'm truly happy and grateful for sharing me with this kind of terrific points. Really an excellent page... you are only the best. videos gratis - sex shop - webcam porno - maduras - jovencitas - xxx - videos x - redtube - travestis - porno
Add a comment