Rails


Bruce A. Tate
Bok Engelsk 2008 · Electronic books.
Utgitt
Sebastopol : : O'Reilly Media, , 2008.
Omfang
1 online resource (224 p.)
Utgave
2nd ed.
Opplysninger
Description based upon print version of record.. - Rails: Up and Running; Conventions Used in This Book; Using Code Examples; Platforms; Safari® Books Online; How to Contact Us; Acknowledgments; 1. Zero to Sixty: Introducing Rails; Organization; The Web Server; nginx; Mongrel; WEBrick; Other web servers; Creating a Controller; Building a View; Tying Controller Data to the View; Under the Hood; What's Next?; 2. Scaffolding, REST, and Routes; Preparing Your Project and Database; Generating a Resource Scaffold; RESTful Routes; REST; The Controller Code; Wrapping Up the Scaffolding; What's Next?; 3. Active Record Basics; A Brief Example. - Drag-and-Drop Everything (Almost Everything)Filtering by Category; 7. Testing; Ruby's Test::Unit; Testing in Rails; Fixtures; Unit tests; Functional tests; Test Coverage; Mocking with Mocha; Assertions and Integration Tests; Integration Tests; Wrapping Up; A. Installing Rails; Ruby on Rails; Mongrel; SQLite; RadRails; OS X; Linux; B. Quick Reference; Supported Web Servers; Supported Databases; Integrated Development Environments (IDEs); Commercial; Editors; Debugging; Create a New Rails Application; Testing; Functional Tests; Redirects; Rendered with template; Variable assignments. - Generating ModelsBasic Active Record Classes; The Rails Console; Attributes; Identifiers; Complex Classes; Composition; Behavior; Validation; Transactions; Conversions; Moving Forward; 4. Active Record Relationships; has_many; has_one; has_and_belongs_to_many; acts_as_list; Trees; What You Haven't Seen; Looking Ahead; 5. Working with Views; Seeing Real Photos; View Templates; Setting the Default Root; Stylesheets; Hierarchical Categories; Styling the Slideshows; Creating the Stylesheet; 6. Ajax; Playing a Slideshow; Using Drag-and-Drop to Reorder Slides. - OptionsDate and time; end_form tag; Layouts; Partials; Ajax; Callbacks; Ajax Forms; Autocompleting Text Field; Observe Field; Observe Form; periodically_call_remote; Configuring Your Application; Caching Configuration; Index; Colophon. - Rendering of specific tagsIntegration Tests; More on Testing; Generators; Plug-ins; RJS (Ruby JavaScript); Active Record; Associations; Association Join Models (As Shown in Figure B-3); Validations; Calculations; Finders; Scope; Named scope; Acts; Callbacks; Observers; Migration; Controllers; Controller Methods; Render; Action; Partials; Templates; Files; Text; Inline Template; RJS; Change content_type; Redirects; Nothing; URL Routing; Filter; Session/Flash; Cookies; Reading; Deleting; Views; html.erb; xml.erb; RJS; Helpers; Links; HTML Forms; Text fields; Text area; Radio button; Checkbox. - 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
Emner
Sjanger
Dewey
ISBN
9780596522001

Bibliotek som har denne