Rails crash course a no-nonsense guide to Rails development
Rails is a robust, flexible development platform that lets you build complex websites quickly. Major websites like GitHub, Hulu, and Twitter have run Rails under the hood, and if you know just enough HTML and CSS to be dangerous, Rails Crash Course will teach you to harness Rails for your own projec...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
San Francisco, [California] :
No Starch Press
2015.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009629181206719 |
Tabla de Contenidos:
- Foreword; Acknowledgments; Introduction; Who This Book Is For; Overview; Installation; Part I: Ruby on Rails Fundamentals; Chapter 1: Ruby Fundamentals; Interactive Ruby; Data Types; Numbers; Strings; Symbols; Arrays; Hashes; Booleans; Constants; Variables; Control Flow; Conditionals; Iteration; Methods; Classes; Class Methods; Inheritance; Summary; Exercises; Chapter 2: Rails Fundamentals; Your First Rails Application; Rails Principles; Convention over Configuration; Don't Repeat Yourself; Rails Architecture; Model; View; Controller; Rails Application Structure; The app Directory
- The bin Directory The config Directory; The db Directory; The lib Directory; The log Directory; The public Directory; The test Directory; The tmp Directory; The vendor Directory; Rails Commands; The gem Command; The bundle Command; The rake Command; The rails Command; Rails Scaffold; Summary; Exercises; Chapter 3: Models; The Post Model; Active Record; Create, Read, Update, and Delete; Create; Read; Update; Delete; More Active Record Methods; Query Conditions; Calculations; Migrations; The Schema; Adding a Column; Inside the Author Migration; Validations; Adding a Validation; Testing Data
- Associations Generating the Model; Adding Associations; Using Associations; Summary; Exercises; Chapter 4: Controllers; Representational State Transfer; Routing; Resources; Custom Routes; The Root Route; Paths and URLs; Controller Actions; A Brief Detour from Actions; Back to Controller Actions; Adding Comments; Summary; Exercises; Chapter 5: Views; Embedded Ruby; Output; Control Flow; Comments; Helpers; URL Helpers; Number Helpers; Your Own Helpers; The Posts Index Page; Layouts; Asset Tag Helpers; CSRF Meta Tags Helper; Yield; Partials; Collections; Showing Comments; Forms; Form Helpers
- Form Errors Form Controls; Comment Form; Summary; Exercises; Chapter 6: Deployment; Version Control; Git; Setup; Getting Started; Basic Usage; Heroku; Getting Started; Updating Your Gemfile; Deploying Your Application; Summary; Part I Remarks; Exercises; Part II: Building a Social Networking App; Chapter 7: Advanced Ruby; Modules; Modules as Namespaces; Modules as Mixins; Ruby Object Model; Ancestors; Methods; Class; Introspection; Duck Typing; Metaprogramming; define_method; class_eval; method_missing; Summary; Exercises; Chapter 8: Advanced Active Record; Advanced Data Modeling
- Self Join Associations Many-to-Many Associations; Single-Table Inheritance; Polymorphic Associations; The Social Application; User Model; Post Models; Comment Model; Summary; Exercises; Chapter 9: Authentication; The Authentication System; Post Index and Show; Sign Up; Log In; Current User; Authenticate User; Use Current User; Summary; Exercises; Chapter 10: Testing; Testing in Rails; Preparing to Test; Running Tests; Using Fixtures; Putting Assertions to Work; Eliminating Duplication with Callbacks; Model Tests; Controller Tests; Controller Test Helpers; Controller Test Assertions
- Integration Tests