Book description
Ready to go to the next level with Rails? From examining the parts of Ruby that make this framework possible to deploying large Rails applications, Advanced Rails offers you an in-depth look at techniques for dealing with databases, security, performance, web services and much more.
Chapters in this book help you understand not only the tricks and techniques used within the Rails framework itself, but also how to make use of ideas borrowed from other programming paradigms. Advanced Rails pays particular attention to building applications that scale -- whether "scale" means handling more users, or working with a bigger and more complex database. You'll find plenty of examples and code samples that explain:
- Aspects of Ruby that are often confusing or misunderstood
- Metaprogramming
- How to develop Rails plug-ins
- Different database management systems
- Advanced database features, including triggers, rules, and stored procedures
- How to connect to multiple databases
- When to use the Active Support library for generic, reusable functions
- Security principles for web application design, and security issues endemic to the Web
- When and when not to optimize performance
- Why version control and issue tracking systems are essential to any large or long-lived Rails project
Publisher resources
Table of contents
- Preface
-
1. Foundational Techniques
- What Is Metaprogramming?
- Ruby Foundations
-
Metaprogramming Techniques
- Delaying Method Lookup Until Runtime
- Generative Programming: Writing Code On-the-Fly
- Continuations
- Bindings
- Introspection and ObjectSpace: Examining Data and Methods at Runtime
- Delegation with Proxy Classes
- Monkeypatching
- Disadvantages of monkeypatching
- Adding Functionality to Existing Methods
- Modulization
- Functional Programming
- Examples
- Further Reading
-
2. ActiveSupport and RailTies
- Ruby You May Have Missed
- How to Read Code
- ActiveSupport
- Core Extensions
- RailTies
- Further Reading
- 3. Rails Plugins
- 4. Database
- 5. Security
- 6. Performance
- 7. REST, Resources, and Web Services
- 8. i18n and L10n
- 9. Incorporating and Extending Rails
- 10. Large Projects
- Index
- About the Author
- Colophon
- Copyright
Product information
- Title: Advanced Rails
- Author(s):
- Release date: December 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596510329
You might also like
book
Learning Rails 5
If you’re a web developer or designer ready to learn Ruby on Rails, this hands-on guide …
book
Service-Oriented Design with Ruby and Rails
The Complete Guide to Building Highly Scalable, Services-Based Rails Applications Ruby on Rails deployments are growing, …
book
Modern Front-End Development for Rails
Improve the user experience for your Rails app with rich, engaging client-side interactions. Learn to use …
book
Enterprise Rails
What does it take to develop an enterprise application with Rails? Enterprise Rails introduces several time-tested …