
Rails Pocket Reference
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- 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
- Configuring Your Environment
- General 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 _
- Run the console in sandbox mode
- Output 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 Configurations
- Action 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
- Real World Example: Honey-Do Task List
- Routing
- 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
- Capistrano
- TextMate
- Helpers
- ActiveRecordHelper
- error_message_on
- error_messages_for
- form
- input
- AssetTagHelper
- image_path
- image_tag
- javascript_include_tag
- stylesheet_link_tag
- CacheHelper
- cache
- DateHelper
- datetime_select
- distance_of_time_in_words
- select_date
- select_datetime
- select_day
- select_hour
- select_minute
- select_month
- select_second
- select_year
- time_select
- FormHelper
- check_box
- fields_for
- file_field
- form_for
- hidden_field
- label
- password_field
- radio_button
- text_area
- text_field
- FormOptionsHelper
- collection_select
- country_options_for_select
- country_select
- option_groups_from_collection_for_select
- options_for_select
- options_from_collection_for_select
- select
- NumberHelper
- number_to_currency
- number_to_human_size
- number_to_percentage
- number_to_phone
- number_with_delimiter
- number_with_precision
- Index
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.