Rails: Up and Running. 2nd Edition - Helion
ISBN: 978-05-965-5417-0
stron: 224, Format: ebook
Data wydania: 2008-10-07
Księgarnia: Helion
Cena książki: 84,92 zł (poprzednio: 98,74 zł)
Oszczędzasz: 14% (-13,82 zł)
In just a matter of days, you can develop powerful web applications with Rails that once took weeks or months to produce with other web frameworks. If that sounds too good to be true, it isn't. Find out for yourself with Rails: Up and Running, the concise and popular book that not only explains how Rails works, but guides you through a complete test drive.
Perfect for beginning web developers, this thoroughly revised edition teaches you the basics of installing and using Rails 2.1 and the Ruby scripting language. While Rails is praised for its simplicity, there are still a few tricky steps to master along the way. Rails: Up and Running offers lots of examples and covers just about everything you need to build functional Rails applications right away. Learn how to:
- Create simple database-backed applications, and build dynamic user-centric web pages using Ajax and REST
- Exploit the Rails service frameworks to send emails and implement web services
- Map data to an imperfect table, traverse complex relationships, and build custom finders
- Use techniques to solve common database performance problems
Osoby które kupowały "Rails: Up and Running. 2nd Edition", wybierały także:
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Programowanie w języku Ruby. Mikrousługi i konteneryzacja 58,98 zł, (29,49 zł -50%)
- Rails. Sztuka programowania 58,98 zł, (29,49 zł -50%)
- Ruby on Rails. Od podstaw 49,00 zł, (24,50 zł -50%)
- Rails. Receptury 67,00 zł, (33,50 zł -50%)
Spis treści
Rails: Up and Running. Lightning-Fast Web Development. 2nd Edition eBook -- spis treści
- Rails: Up and Running
- SPECIAL OFFER: Upgrade this ebook with OReilly
- A Note Regarding Supplemental Files
- Preface
- Who Should Read This Book?
- Conventions Used in This Book
- Using Code Examples
- Platforms
- Safari Books Online
- How to Contact Us
- Acknowledgments
- 1. Zero to Sixty: Introducing Rails
- Putting Rails into Action
- Organization
- The Web Server
- Choosing a Server
- Apache
- nginx
- Mongrel
- WEBrick
- Other web servers
- Choosing a Server
- Creating a Controller
- Mapping params
- Building a View
- Tying Controller Data to the View
- Expressions and Scriptlets
- Under the Hood
- Whats Next?
- 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
- Whats Next?
- Introducing Photo Share
- 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
- Active Record Basics
- 4. Active Record Relationships
- belongs_to
- has_many
- has_one
- has_and_belongs_to_many
- Join Models
- acts_as_list
- Trees
- What You Havent Seen
- Looking Ahead
- 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
- 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
- 7. Testing
- Background
- Rubys Test::Unit
- Testing in Rails
- Unit Tests, Functional Tests, and Integration Tests
- Environments
- Fixtures
- Unit tests
- Functional tests
- Unit Tests, Functional Tests, and Integration Tests
- Test Coverage
- Mocking with Mocha
- Assertions and Integration Tests
- Assertions in Rails
- Integration Tests
- Selenium
- Wrapping Up
- A. Installing Rails
- Windows
- Ruby One-Click Installer
- Ruby on Rails
- Mongrel
- SQLite
- RadRails
- OS X
- TextMate and RadRails
- Linux
- Windows
- 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
- REST
- 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
- General
- Index
- About the Authors
- Colophon
- SPECIAL OFFER: Upgrade this ebook with OReilly