Learning Rails

Front Cover
"O'Reilly Media, Inc.", Nov 18, 2008 - Computers - 448 pages

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.

 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Contents

Chapter 1 Starting Up Ruby on Rails
1
Chapter 2 Rails on the Web
15
Chapter 3 Adding Web Style
29
Controllers and Models
41
Chapter 5 Accelerating Development with Scaffolding and REST
59
Chapter 6 Presenting Models with Forms
81
Chapter 7 Strengthening Models with Validation
107
Chapter 8 Improving Forms
123
Chapter 14 Users and Authentication
237
Chapter 15 Routing
255
Chapter 16 Creating Dynamic Interfaces with Rails and Ajax
269
Chapter 17 Mail in Rails
285
Chapter 18 Securing Managing and Deploying Your Rails Projects
305
Chapter 19 Making the Most of RailsAnd Beyond
323
Appendix A An Incredibly Brief Introduction to Ruby
329
Appendix B An Incredibly Brief Introduction to Relational Databases
349

Chapter 9 Developing Model Relationships
143
Chapter 10 Managing Databases with Migrations
177
Chapter 11 Debugging
189
Chapter 12 Testing
201
Chapter 13 Sessions and Cookies
223
Appendix C An Incredibly Brief Guide to Regular Expressions
357
Appendix D A Catalog of Helper Methods
367
Appendix E Glossary
383
Index
399
Copyright

Other editions - View all

Common terms and phrases

Bibliographic information