Advanced Rails
Read it now on the O’Reilly learning platform with a 10-day free trial.
O’Reilly members get unlimited access to books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.
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): Brad Ediger
- Release date: December 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596510329
You might also like
book
Rails 5 Test Prescriptions
by Noel Rappin
Does your Rails code suffer from bloat, brittleness, or inaccuracy? Cure these problems with the regular …
book
Rails Crash Course
by Anthony Lewis
In Rails Crash Course, author Anthony Lewis shows you how to harness Rails to build web …
book
Learning Rails 5
by J. Mark Locklear, Eric J Gruber, Barnabas Bulpett
If you’re a web developer or designer ready to learn Ruby on Rails, this hands-on guide …
book
Enterprise Rails
by Dan Chak
What does it take to develop an enterprise application with Rails? Enterprise Rails introduces several time-tested …