Rails Pocket Reference


Eric. Berry
Bok Engelsk 2008 · Electronic books.
Annen tittel
Utgitt
Sebastopol : : O'Reilly Media, , 2008.
Omfang
1 online resource (198 p.)
Opplysninger
Description based upon print version of record.. - Table of Contents; Preface; Conventions Used in This Book; Using Code Examples; Safari® Books Online; How to Contact Us; Acknowledgments; Chapter 1. Rails Pocket Reference; About Rails Pocket Reference; Getting Started; RubyGems; Installing Rails with RubyGems; Using Instant Rails on Windows; Gem Dependencies; Rails Commands and Configuration; Usage and Options; Usage; Options; Rails File Structure; Configuring Rails; Scripts; script/about; script/console; script/destroy; script/generate; script/performance; script/plugin; script/process; script/runner; script/server; Environments. - Capistrano. - Configuring Your EnvironmentGeneral options; ActiveRecord options; ActionView options; ActionMailer options; Custom Environments; Rake; Usage and Options; Building Custom Rake Tasks; Testing Rails; Assertions; DOM assertions; Model assertions; Response assertions; Routing assertions; Selector assertions; Tag assertions; Functional Tests; Controller-driven functional tests; View-driven functional tests; Fixtures; YAML; Comma-separated value; ERb in YAML and CSV; Mocks; Unit Testing for Models; Rails Console; Console Tips and Tricks; Accessing the last return value with _. - Real World Example: Honey-Do Task ListRouting; Routing Basics; Route priority; Default routes and default parameters; Named routes; Pretty URLs; Regular expressions and parameters; Route globbing; Route conditions; Reloading routes; REST; RESTful Resources; Sample RESTful Rails Application; ActionMailer; Sending an Email; HTML and Multipart Emails; Attachments; Action Web Services; What Can You Do with Web Services Under Rails?; Using REST; Using XML-RPC; Using SOAP; Logging; Filtering Sensitive Parameters; Creating Additional Loggers; Logging on the Console; ActiveResource; Plugins. - Run the console in sandbox modeOutput object to YAML with y; Format with helper methods using helper; Access your controllers with app; ActiveRecord and Models; Migrations; Column type mappings; Column options; Run the migration; Associations; One-to-one; One-to-many; Many-to-many; Polymorphic associations; Validations; Named Scope; Passing arguments; Named scope extensions; Anonymous scopes; CRUD: Create, Read, Update, Delete; Create; Read; Update; Delete; Conditions; Dirty objects; Partial updates; Database Configurations; MySQL; PostgreSQL; Oracle; Microsoft SQL Server. - Using Multiple Database ConfigurationsAction Controllers; Requests; Parameters; Sessions; Responses; Renders; Redirects; Calling Multiple Redirects or Renders; Views; Using Variables with ERb; Layouts and Templates; respond_to; Using custom formats with respond_to; Builder; JavaScriptGenerator; Using subtemplates; Partials; Rendering a collection of partials; Rendering shared partials; Rendering partials with layouts; Caching; Page caching; Action caching; Fragment caching; Sweeping cache; Rails and Ajax; JavaScriptHelper; PrototypeHelper; ScriptaculousHelper. - Rails 2.1 brings a new level of stability and power to this acclaimed web development framework, but keeping track of its numerous moving parts is still a chore. Rails Pocket Reference offers you a painless alternative to hunting for resources online, with brief yet thorough explanations of the most frequently used methods and structures supported by Rails 2.1, along with key concepts you need to work through the framework's most tangled corners. Organized to help you quickly find what you need, this book will not only get you up to speed on how Rails works, it also p
Emner
Sjanger
Dewey
ISBN
9780596520700

Bibliotek som har denne