
Rails: Up and Running
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
- Who Should Read This Book?
- Conventions Used in This Book
- Using Code Examples
- Platforms
- Safari® Books Online
- How to Contact Us
- Acknowledgments
- Chapter 1. Zero to Sixty: Introducing Rails
- Putting Rails into Action
- Organization
- The Web Server
- Choosing a Server
- Apache
- nginx
- Mongrel
- WEBrick
- Other web servers
- Creating a Controller
- Mapping params
- Building a View
- Tying Controller Data to the View
- Expressions and Scriptlets
- Under the Hood
- What's Next?
- Chapter 2. Scaffolding, REST, and Routes
- Introducing Photo Share
- Defining the Resources
- Preparing Your Project and Database
- Generating a Resource Scaffold
- A List of Photos
- RESTful Routes
- Named Routes
- REST
- The Controller Code
- Wrapping Up the Scaffolding
- What's Next?
- Chapter 3. Active Record Basics
- Active Record Basics
- Wrapping, Not Mapping
- A Brief Example
- Generating Models
- Basic Active Record Classes
- Wrapping the Table
- The Rails Console
- Attributes
- Columns
- Identifiers
- Complex Classes
- Inheritance
- Composition
- Behavior
- Finders
- Validation
- Transactions
- Conversions
- Moving Forward
- Chapter 4. Active Record Relationships
- belongs_to
- has_many
- has_one
- has_and_belongs_to_many
- Join Models
- acts_as_list
- Trees
- What You Haven't Seen
- Looking Ahead
- Chapter 5. Working with Views
- The Big Picture
- Seeing Real Photos
- View Templates
- Layouts
- Setting the Default Root
- Stylesheets
- Hierarchical Categories
- Assign a Category to a Photo
- Styling the Slideshows
- Creating Your Own Helper Functions
- Creating the Stylesheet
- Chapter 6. Ajax
- How Rails Implements Ajax
- Playing a Slideshow
- Using Drag-and-Drop to Reorder Slides
- Drag-and-Drop Everything (Almost Everything)
- Filtering by Category
- Chapter 7. Testing
- Background
- Ruby's Test::Unit
- Testing in Rails
- Unit Tests, Functional Tests, and Integration Tests
- Environments
- Fixtures
- Unit tests
- Functional tests
- Test Coverage
- Mocking with Mocha
- Assertions and Integration Tests
- Assertions in Rails
- Integration Tests
- Selenium
- Wrapping Up
- Appendix A. Installing Rails
- Windows
- Ruby One-Click Installer
- Ruby on Rails
- Mongrel
- SQLite
- RadRails
- OS X
- TextMate and RadRails
- Linux
- Appendix B. Quick Reference
- General
- Documentation
- Supported Web Servers
- Supported Databases
- Integrated Development Environments (IDEs)
- Open Source
- Commercial
- Editors
- Debugging
- Create a New Rails Application
- Testing
- Unit Tests
- Functional Tests
- Requests
- Redirects
- Rendered with template
- Variable assignments
- Rendering of specific tags
- Integration Tests
- More on Testing
- rake
- Generators
- Plug-ins
- RJS (Ruby JavaScript)
- Active Record
- Automated Mapping
- Associations
- Association Join Models (As Shown in Figure B-3)
- Validations
- Calculations
- Finders
- Dynamic attribute-based finders
- Scope
- Named scope
- Acts
- Callbacks
- Observers
- Migration
- Controllers
- REST
- Named routes
- Controller Methods
- Render
- Action
- Partials
- Templates
- Files
- Text
- Inline Template
- RJS
- Change content_type
- Redirects
- Nothing
- URL Routing
- Filter
- Session/Flash
- Session management
- Cookies
- Setting
- Reading
- Deleting
- Views
- View Templates
- html.erb
- xml.erb
- RJS
- Helpers
- Links
- HTML Forms
- Form
- Text fields
- Text area
- Radio button
- Checkbox
- Options
- Date and time
- end_form tag
- Layouts
- Partials
- Ajax
- Linking to Remote Action
- Callbacks
- Ajax Forms
- Autocompleting Text Field
- Observe Field
- Observe Form
- periodically_call_remote
- Configuring Your Application
- Session Configuration
- Caching Configuration
- 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.