skip to content
Rails cookbook Preview this item
ClosePreview this item
Checking...

Rails cookbook

Author: Rob Orsini
Publisher: Cambridge : O'Reilly, ©2007.
Edition/Format:   Book : EnglishView all editions and formats
Database:WorldCat
Summary:
Rails is one of the leading frameworks for developing the new generation of Web 2.0 applications using the increasingly popular Ruby scripting language. This text is for all web developers, regardless of experience, who want to learn about Rails applications.
Rating:

(not yet rated) 0 with reviews - Be the first.

Subjects
More like this

 

Find a copy in the library

&AllPage.SpinnerRetrieving; Finding libraries that hold this item...

Details

Document Type: Book
All Authors / Contributors: Rob Orsini
ISBN: 9780596527310 0596527314
OCLC Number: 71238889
Notes: Includes index.
Description: xviii, 514 p. : ill. ; 24 cm.
Contents: 1.1 Joining the Rails Community 2 --
1.2 Finding Documentation 4 --
1.3 Installing MySQL 5 --
1.4 Installing PostgreSQL 8 --
1.5 Installing Rails 10 --
1.6 Fixing Ruby and Installing Rails on OS X 10.4 Tiger 12 --
1.7 Running Rails in OS X with Locomotive 14 --
1.8 Running Rails in Windows with Instant Rails 16 --
1.9 Updating Rails with RubyGems 18 --
1.10 Getting Your Rails Project into Subversion 19 --
2 Rails Development 23 --
2.1 Creating a Rails Project 23 --
2.2 Jump-Starting Development with Scaffolding 26 --
2.3 Speeding Up Rails Development with Mongrel 28 --
2.4 Enhancing Windows Development with Cygwin 31 --
2.5 Understanding Pluralization Patterns in Rails 32 --
2.6 Developing Rails in OS X with TextMate 36 --
2.7 Cross-Platform Developing with RadRails 37 --
2.8 Installing and Running Edge Rails 38 --
2.9 Setting Up Passwordless Authentication with SSH 41 --
2.10 Generating RDoc for Your Rails Application 42 --
2.11 Creating Full-Featured CRUD Applications with Streamlined 45 --
3 Active Record 49 --
3.1 Setting Up a Relational Database to Use with Rails 50 --
3.2 Programmatically Defining Database Schema 54 --
3.3 Developing Your Database with Migrations 56 --
3.4 Modeling a Database with Active Record 60 --
3.5 Inspecting Model Relationships from the Rails Console 63 --
3.6 Accessing Your Data via Active Record 66 --
3.7 Retrieving Records with find 68 --
3.8 Iterating Over an Active Record Result Set 71 --
3.9 Retrieving Data Efficiently with Eager Loading 74 --
3.10 Updating an Active Record Object 77 --
3.11 Enforcing Data Integrity with Active Record Validations 81 --
3.12 Executing Custom Queries with find_by_sql 84 --
3.13 Protecting Against Race Conditions with Transactions 88 --
3.14 Adding Sort Capabilities to a Model with acts_as_list 92 --
3.15 Performing a Task Whenever a Model Object Is Created 97 --
3.16 Modeling a Threaded Forum with acts_as_nested_set 100 --
3.17 Creating a Directory of Nested Topics with acts_as_tree 104 --
3.18 Avoiding Race Conditions with Optimistic Locking 107 --
3.19 Handling Tables with Legacy Naming Conventions 109 --
3.20 Automating Record Timestamping 111 --
3.21 Factoring Out Common Relationships with Polymorphic Associations 112 --
3.22 Mixing Join Models and Polymorphism for Flexible Data Modeling 115 --
4 Action Controller 121 --
4.1 Accessing Form Data from a Controller 122 --
4.2 Changing an Application's Default Page 125 --
4.3 Clarifying Your Code with Named Routes 126 --
4.4 Configuring Customized Routing Behavior 127 --
4.5 Displaying Alert Messages with Flash 129 --
4.6 Extending the Life of a Flash Message 131 --
4.7 Following Actions with Redirects 133 --
4.8 Generating URLs Dynamically 134 --
4.9 Inspecting Requests with Filters 135 --
4.10 Logging with Filters 137 --
4.11 Rendering Actions 140 --
4.12 Restricting Access to Controller Methods 141 --
4.13 Sending Files or Data Streams to the Browser 142 --
4.14 Storing Session Information in a Database 144 --
4.15 Tracking Information with Sessions 146 --
4.16 Using Filters for Authentication 149 --
5 Action View 155 --
5.1 Simplifying Templates with View Helpers 156 --
5.2 Displaying Large Datasets with Pagination 158 --
5.3 Creating a Sticky Select List 161 --
5.4 Editing Many-to-Many Relationships with Multiselect Lists 163 --
5.5 Factoring Out Common Display Code with Layouts 166 --
5.6 Defining a Default Application Layout 169 --
5.7 Generating XML with Builder Templates 170 --
5.8 Generating RSS Feeds from Active Record Data 172 --
5.9 Reusing Page Elements with Partials 174 --
5.10 Processing Dynamically Created Input Fields 177 --
5.11 Customizing the Behavior of Standard Helpers 181 --
5.12 Creating a Web Form with Form Helpers 183 --
5.13 Formatting Dates, Times, and Currencies 187 --
5.14 Personalizing User Profiles with Gravatars 190 --
5.15 Avoiding Harmful Code in Views with Liquid Templates 191 --
5.16 Globalizing Your Rails Application 195 --
6 Restful Development 201 --
6.1 Creating Nested Resources 204 --
6.2 Supporting Alternative Data Formats by MIME Type 208 --
6.3 Modeling Relationships Restfully with Join Models 210 --
6.4 Moving Beyond Simple CRUD with Restful Resources 213 --
6.5 Consuming Complex Nested Rest Resources 217 --
6.6 Developing Your Rails Applications Restfully 220 --
7 Rails Application Testing 225 --
7.1 Centralizing the Creation of Objects Common to Test Cases 226 --
7.2 Creating Fixtures for Many-to-Many Associations 227 --
7.3 Importing Test Data with CSV Fixtures 229 --
7.4 Including Dynamic Data in Fixtures with ERb 232 --
7.5 Initializing a Test Database 233 --
7.6 Interactively Testing Controllers from the Rails Console 235 --
7.7 Interpreting the Output of Test::Unit 237 --
7.8 Loading Test Data with YAML Fixtures 238 --
7.9 Monitoring Test Coverage with rake stats 240 --
7.10 Running Tests with Rake 241 --
7.11 Speeding Up Tests with Transactional Fixtures 242 --
7.12 Testing Across Controllers with Integration Tests 244 --
7.13 Testing Controllers with Functional Tests 247 --
7.14 Examining the Contents of Cookie 250 --
7.15 Testing Custom and Named Routes 253 --
7.16 Testing HTTP Requests with Response-Related Assertions 255 --
7.17 Testing a Model with Unit Tests 256 --
7.18 Unit Testing Model Validations 259 --
7.19 Verifying DOM Structure with Tag-Related Assertions 261 --
7.20 Writing Custom Assertions 264 --
7.21 Testing File Upload 265 --
7.22 Modifying the Default Behavior of a Class for Testing by Using Mocks 269 --
7.23 Improving Feedback by Running Tests Continuously 271 --
7.24 Analyzing Code Coverage with Rcov 272 --
8 JavaScript and Ajax 277 --
8.1 Adding DOM Elements to a Page 278 --
8.2 Creating a Custom Report with Drag and Drop 281 --
8.3 Dynamically Adding Items to a Select List 286 --
8.4 Monitoring the Content Length of a Textarea 288 --
8.5 Updating Page Elements with RJS Templates 292 --
8.6 Inserting JavaScript into Templates 295 --
8.7 Letting a User Reorder a List 298 --
8.8 Autocompleting a Text Field 302 --
8.9 Searching for and Highlighting Text Dynamically 304 --
8.10 Enhancing the User Interface with Visual Effects 308 --
8.11 Implementing a Live Search 311 --
8.12 Editing Fields in Place 315 --
8.13 Creatingan Ajax Progress Indicator 317 --
9 Action Mailer 321 --
9.1 Configuring Rails to Send Email 322 --
9.2 Creating a Custom Mailer Class with the Mailer Generator 323 --
9.3 Formatting Email Messages Using Templates 325 --
9.4 Attaching Files to Email Messages 326 --
9.5 Sending Email from a Rails Application 327 --
9.6 Receiving Email with Action Mailer 328 --
10 Debugging Rails Applications 333 --
10.1 Exploring Rails from the Console 334 --
10.2 Fixing Bugs at the Source with Ruby -cw 336 --
10.3 Debugging Your Application in Real Time with the breakpointer 338 --
10.4 Logging with the Built-in Rails Logger Class 342 --
10.5 Writing Debugging Information to a File 344 --
10.6 Emailing Application Exceptions 346 --
10.7 Outputting Environment Information in Views 350 --
10.8 Displaying Object Contents with Exceptions 352 --
10.9 Filtering Development Logs in Real Time 353 --
10.10 Debugging HTTP Communication with Firefox Extensions 355 --
10.11 Debugging Your JavaScript in Real Time with the JavaScript Shell 356 --
10.12 Debugging Your Code Interactively with ruby-debug 360 --
11 Security 365 --
11.1 Hardening Your Systems with Strong Passwords 365 --
11.2 Protecting Queries from SQL Injection 368 --
11.3 Guarding Against Cross-Site Scripting Attacks 369 --
11.4 Restricting Access to Public Methods or Actions 371 --
11.5 Securing Your Server by Closing Unnecessary Ports 373 --
12 Performance 377 --
12.1 Measuring Web Server Performance with Httperf 378 --
12.2 Benchmarking Portions of Your Application Code 381 --
12.3 Improving Performance by Caching Static Pages 382 --
12.4 Expiring Cached Pages 385 --
12.5 Mixing Static and Dynamic Content with Fragment Caching 388 --
12.6 Filtering Cached Pages with Action Caching 391 --
12.7 Speeding Up Data Access Times with memcached 392 --
12.8 Increasing Performance by Caching Post-Processed Content 395 --
13 Hosting and Deployment 399 --
13.1 Hosting Rails Using Apache 1.3 and mod_fastcgi 400 --
13.2 Managing Multiple Mongrel Processes with mongrel_cluster 402 --
13.3 Hosting Rails with Apache 2.2, mod_proxy_balancer, and Mongrel 405 --
13.4 Deploying Rails with Pound in Front of Mongrel, Lighttpd, and Apache 409 --
13.5 Customizing Pound's Logging with cronolog 413 --
13.6 Configuring Pound with SSL Support 416 --
13.7 Simple Load Balancing with Pen 418 --
13.8 Deploying Your Rails Project with Capistrano 419 --
13.9 Deploying Your Application to Multiple Environments with Capistrano 423 --
13.10 Deploying with Capistrano When You Can't Access Subversion 425 --
13.11 Deploying with Capistrano and mongrel_cluster 427 --
13.12 Disabling Your Web Site During Maintenance 429 --
13.13 Writing Custom Capistrano Tasks 432 --
13.14 Cleaning Up Residual Session Records 436 --
14 Extending Rails with Plug-ins 439 --
14.1 Finding Third-Party Plug-ins 440 --
14.2 Installing Plug-ins 441 --
14.3 Manipulating Record Versions with acts_as_versioned 443 --
14.4 Building Authentication with acts_as_authenticated 446 --
14.5 Simplifying Folksonomy with the acts_as_taggable 450 --
14.6 Extending Active Record with acts_as 455 --
14.7 Adding View Helpers to Rails as Plug-ins 460 --
14.8 Uploading Files with file_column 462
Responsibility: Rob Orsini.

Abstract:

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  Read more...

Reviews

User-contributed reviews
Retrieving GoodReads reviews...
Retrieving DOGObooks reviews...

Tags

All user tags (2)

View most popular tags as: tag list | tag cloud

Confirm this request

You may have already requested this item. Please select Ok if you would like to proceed with this request anyway.

Linked Data


<http://www.worldcat.org/oclc/71238889>
library:oclcnum"71238889"
library:placeOfPublication
library:placeOfPublication
rdf:typeschema:Book
schema:about
schema:about
schema:about
schema:about
schema:about
schema:copyrightYear"2007"
schema:creator
schema:datePublished"2007"
schema:description"Rails is one of the leading frameworks for developing the new generation of Web 2.0 applications using the increasingly popular Ruby scripting language. This text is for all web developers, regardless of experience, who want to learn about Rails applications."@en
schema:exampleOfWork<http://worldcat.org/entity/work/id/58206056>
schema:inLanguage"en"
schema:name"Rails cookbook"@en
schema:numberOfPages"514"
schema:publication
schema:publisher
schema:workExample
umbel:isLike<http://bnb.data.bl.uk/id/resource/GBA674452>
wdrs:describedby

Content-negotiable representations

Close Window

Please sign in to WorldCat 

Don't have an account? You can easily create a free account.