Read more
Rails Cookbook is packed with the solutions you need to be a proficient developer with Rails, the leading framework for building the new generation of Web 2.0 applications. Recipes range from the basics, like installing Rails and setting up your development environment, to the latest techniques, such as developing RESTful web services.With applications that are code light, feature-full and built to scale quickly, Rails has revolutionized web development. The Rails Cookbook addresses scores of real-world challenges; each one includes a tested solution, plus a discussion of how and why it works, so that you can adapt the techniques to similar situations. Topics include: Modeling data with the ActiveRecord library Setting up views with ActionView and RHTML templates Building your application's logic into ActionController Testing and debugging your Rails application Building responsive web applications using JavaScript and Ajax Ensuring that your application is security and performs well Deploying your application with Mongrel and Apache Using Capistrano to automate deployment Using the many Rails plugins Working with graphicsWhether you're new to Rails or an experienced developer, you'll discover ways to test, debug and secure your applications, incorporate Ajax, use caching to improve performance, and put your application into production. Want to get ahead of the Web 2.0 curve? This valuable cookbook will save you hundreds of hours when developing applications with Rails.
List of contents
Foreword
Preface
1. Getting Started
Introduction
Joining the Rails Community
Finding Documentation
Installing MySQL
Installing PostgreSQL
Installing Rails
Fixing Ruby and Installing Rails on OS X 10.4 Tiger
Running Rails in OS X with Locomotive
Running Rails in Windows with Instant Rails
Updating Rails with RubyGems
Getting Your Rails Project into Subversion
2. Rails Development
Introduction
Creating a Rails Project
Jump-Starting Development with Scaffolding
Speeding Up Rails Development with Mongrel
Enhancing Windows Development with Cygwin
Understanding Pluralization Patterns in Rails
Developing Rails in OS X with TextMate
Cross-Platform Developing with RadRails
Installing and Running Edge Rails
Setting Up Passwordless Authentication with SSH
Generating RDoc for Your Rails Application
Creating Full-Featured CRUD Applications with Streamlined
3. Active Record
Introduction
Setting Up a Relational Database to Use with Rails
Programmatically Defining Database Schema
Developing Your Database with Migrations
Modeling a Database with Active Record
Inspecting Model Relationships from the Rails Console
Accessing Your Data via Active Record
Retrieving Records with find
Iterating Over an Active Record Result Set
Retrieving Data Efficiently with Eager Loading
Updating an Active Record Object
Enforcing Data Integrity with Active Record Validations
About the author
Rob Orsini ist ein Open Source-Entwickler, der im nördlichen Californien lebt. Davor arbeitete er als Webmaster für Industrial Light&Magic. Rob Orsini programmiert seit 1998 Web-Anwendungen.
Summary
Provides solutions to work with Rails, the framework for building the Web 2.0 applications. This book includes basics, like installing Rails and setting up your development environment. It addresses scores of real-world challenges; each one includes a tested solution, as well as a discussion of how and why it works.