Read more
If you're a web developer or designer ready to learn Rails, this unique book is the ideal way to start.
Rather than throw you into the middle of the framework's Model-View-Controller architecture, Learning Rails 3 works from the outside in. You'll begin with the foundations of the Web you already know, and learn how to create something visible with Rails' view layer. Then you'll tackle the more difficult inner layers: the database models and controller code.
All you need to get started is HTML experience. Each chapter includes exercises and review questions to test your understanding as you go. Present content by building an application with a basic view and a simple controller Build forms and process their results, progressing from simple to more complex Connect forms to models by setting up a database, and 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 Send and receive email messages from your applications
"Learning Rails 3 feels like a brisk pair programming session with professionals who know how to use Ruby on Rails to get things done, and get them done well."
-Alan Harris, author of Sinatra: Up and Running
List of contents
Preface
Chapter 1: Starting Up Ruby on Rails
Chapter 2: Rails on the Web
Chapter 3: Adding Web Style
Chapter 4: Managing Data Flow: Controllers and Models
Chapter 5: Accelerating Development with Scaffolding and REST
Chapter 6: Presenting Models with Forms
Chapter 7: Strengthening Models with Validation
Chapter 8: Improving Forms
Chapter 9: Developing Model Relationships
Chapter 10: Managing Databases with Migrations
Chapter 11: Debugging
Chapter 12: Testing
Chapter 13: Sessions and Cookies
Chapter 14: Users and Authentication
Chapter 15: Routing
Chapter 16: From CSS to SASS
Chapter 17: Managing Assets and Bundles
Chapter 18: Sending Code to the Browser: JavaScript and CoffeeScript
Chapter 19: Mail in Rails
Chapter 20: Pushing Further into Rails
An Incredibly Brief Introduction to Ruby
An Incredibly Brief Introduction to Relational Databases
An Incredibly Brief Guide to Regular Expressions
Glossary
Colophon
About the author
Simon St. Laurent is a web developer, network administrator, computer book author, and XML troublemaker living in Ithaca, NY. His books include XML: A Primer, XML Elements of Style, Building XML Applications, Cookies, and Sharing Bandwidth. He is a contributing editor to XMLhack.com and an occasional contributor to XML.com.
Edd Dumbill is Managing Editor of XML.com. He also writes free software, and packages Bluetooth-related software for the Debian GNU/Linux distribution. Edd is the creator of XMLhack and WriteTheWeb, and has a weblog called Behind the Times.
Summary
Ready to learn Rails? Unlike most Rails books, Learning Rails is for web developers, and not for programmers. You'll start from the foundations of the Web you already know, and learn how to create something visible with Rails before reaching the more difficult database models and controller code. Learning Rails 3 covers the most recent developments