Book description
While most books written about Rails cater to programmers looking for information on data structures, Learning Rails targets web developers whose programming experience is tied directly to the Web.
Rather than begin with the inner layers of a Rails web application--the models and controllers--this unique book approaches Rails development from the outer layer: the application interface. You'll learn how to create something visible with Rails before reaching the more difficult database models and controller code. With Learning Rails, you can start from the foundations of web design you already know, and then move more deeply into Ruby, objects, and database structures. This book will help you:
- Present web content by building an application with a basic view and a simple controller, while learning Ruby along the way
- Build forms and process their results, progressing from the simple to the more complex
- Connect forms to models by setting up a database, and use Rails' ActiveRecord to create code that maps to database structures
- Use Rails scaffolding to build applications from a view-centric perspective
- Add common web application elements such as sessions, cookies, and authentication
- Build applications that combine data from multiple tables
- Create simple but dynamic interfaces with Rails and Ajax
Once you complete Learning Rails, you'll be comfortable working with the Rails web framework, and you'll be well on your way to becoming a Rails guru.
Table of contents
-
Learning Rails
- SPECIAL OFFER: Upgrade this ebook with OâReilly
- A Note Regarding Supplemental Files
- Preface
- 1. Starting Up Ruby on Rails
- 2. Rails on the Web
- 3. Adding Web Style
- 4. Controlling Data Flow: Controllers and Models
- 5. Accelerating Development with Scaffolding and REST
- 6. Presenting Models with Forms
- 7. Strengthening Models with Validation
- 8. Improving Forms
- 9. Developing Model Relationships
- 10. Managing Databases with Migrations
- 11. Debugging
- 12. Testing
- 13. Sessions and Cookies
- 14. Users and Authentication
- 15. Routing
- 16. Creating Dynamic Interfaces with Rails and Ajax
- 17. Mail in Rails
- 18. Securing, Managing, and Deploying Your Rails Projects
- 19. Making the Most of RailsâAnd Beyond
- A. An Incredibly Brief Introduction to Ruby
- B. An Incredibly Brief Introduction to Relational Databases
- C. An Incredibly Brief Guide to Regular Expressions
-
D. A Catalog of Helper Methods
- Calling Helper Methods
- ActiveRecordHelper
- AssetTagHelper
- AtomFeedHelper and AtomFeedHelper::AtomFeedBuilder
- BenchmarkHelper, CacheHelper, and CaptureHelper
- DateHelper
- DebugHelper
- FormHelper, FormTagHelper, and FormOptionsHelper
- JavaScriptHelper
- NumberHelper
- PrototypeHelper
- RecordIdentificationHelper
- SanitizeHelper
- ScriptaculousHelper
- TagHelper
- TextHelper
- UrlHelper
- E. Glossary
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OâReilly
Product information
- Title: Learning Rails
- Author(s):
- Release date: November 2008
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596554217
You might also like
book
Learn Rails 5.2: Accelerated Web Development with Ruby on Rails
Learn to build Rails-based web applications using all the latest features offered in Rails 5.2. Author …
book
Learning Rails 5
If you’re a web developer or designer ready to learn Ruby on Rails, this hands-on guide …
book
Ruby on Rails® Bible
Thanks to the explosive growth in popularity of the Rails framework, the equally popular Ruby programming …
video
Learn Ruby the Hard Way
The media elements for Learn Ruby the Hard Way demonstrate key points in the text.