Learning Rails
While most books written about Rails cater to programmers looking for information on data structures, Learning Rails targets web developers whose programming experience is tied directly to the Web. Rather than begin with the inner layers of a Rails web application--the models and controllers--this...
Autor principal: | |
---|---|
Otros Autores: | |
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Sebastopol, California :
O'Reilly Media Inc
2009.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627556406719 |
Tabla de Contenidos:
- Table of Contents; Preface; Who This Book Is For; Who This Book Is Not For; What You'll Learn; Ruby and Rails Style; Other Options; Rails Versions; If You Have Problems Making Examples Work; If You Like (or Don't Like) This Book; Conventions Used in This Book; Using Code Examples; How to Contact Us; Acknowledgments; Chapter 1. Starting Up Ruby on Rails; Getting Started in the Online Cloud: Heroku; Getting Started with Instant Rails; Getting Started at the Command Line; Starting Up Rails; Dodging Database Issues; What Server Is That?; Test Your Knowledge; Quiz; Answers
- Chapter 2. Rails on the WebCreating Your Own View; What Are All Those Folders?; Adding Some Data; How Hello World Works; Protecting Your View from the Controller; Parentheses Are (Usually) Optional; Adding Logic to the View; Test Your Knowledge; Quiz; Answers; Chapter 3. Adding Web Style; I Want My CSS!; Layouts; Splitting View from Layout; Creating a Default Layout; Choosing a Layout from a Controller; Sharing Template Data with the Layout; Setting a Default Page; Test Your Knowledge; Quiz; Answers; Chapter 4. Controlling Data Flow: Controllers and Models; Getting Started, Greeting Guests
- Application FlowKeeping Track: A Simple Guestbook; Connecting to a Database Through a Model; Connecting the Controller to the Model; Storing data using the model; Retrieving data from the model and showing it; Finding Data with ActiveRecord; Test Your Knowledge; Quiz; Answers; Chapter 5. Accelerating Development with Scaffolding and REST; A First Look at Scaffolding; REST and Controller Best Practices; Websites and Web Applications; Toward a Cleaner Approach; Examining a RESTful Controller; Index: An Overview of Data; Show: Just One Row of Data; New: A Blank Set of Data Fields
- Edit: Hand Me That Data, PleaseCreate: Save Something New; Put This Updated Record In; Destroy It; Escaping the REST Prison; Test Your Knowledge; Quiz; Answers; Chapter 6. Presenting Models with Forms; More Than a Name on a Form; Generating HTML Forms with Scaffolding; Form As a Wrapper; Creating Text Fields and Text Areas; Creating Checkboxes; Creating Radio Buttons; Creating Selection Lists; Dates and Times; Labels; Creating Helper Methods; Letting Helper Methods Make Choices; A More Elegant Helper Method; Putting the Form Body in a Partial; Test Your Knowledge; Quiz; Answers
- Chapter 7. Strengthening Models with ValidationWithout Validation; The Original Model; The Power of Declarative Validation; Managing Secrets; Customizing the Message; Limiting Choices; Testing Format with Regular Expressions; Seen It All Before; Numbers Only; A Place on the Calendar; Testing for Presence; Beyond Simple Declarations; Test It Only If; Do It Yourself; Test Your Knowledge; Quiz; Answers; Chapter 8. Improving Forms; Adding a Picture by Uploading a File; File Upload Forms; Model and Migration Changes; A migration for an extension; Extending a model beyond the database
- Showing it off