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. Active Model
- 4. 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
- Transactions
- Observers
- 5. Action Controller
- 6. Routing
- 7. The Asset Pipeline
- 8. Testing
- 9. Caching
- 10. Rack
- 11. Action Mailer
- 12. Active Resource
- 13. Active Support
- 14. Internationalization
- 15. Plugins
- 16. Appendix




View 7 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.
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
A nice book and a very interesting project. I hope you will continue in this way. Also I have bookmarked this page. Much greetings Die Kanaren , Madeira Insel , Mexiko Land
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
There is some method to buy with paypal?
Edited on May 6, 2013, 5:12 p.m. PDT
Hi betto,
Send me an email to javimuro1@gmail.com I sell link on this web.
I can also sell on other websites with high pagerank.
Add a comment