Rails up and running

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 explain...

Descripción completa

Detalles Bibliográficos
Autor principal: Tate, Bruce, 1965- (-)
Otros Autores: Carlson, Lance, Hibbs, Curt
Formato: Libro electrónico
Idioma:Inglés
Publicado: Cambridge ; Sebastopol, California : O'Reilly Media 2011.
2008.
Edición:2nd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627398206719
Tabla de Contenidos:
  • 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
  • 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
  • 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
  • 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
  • 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