Beginning Rails 6 : from novice to professional /
Springboard your journey into web application development and discover how much fun building web applications with Ruby on Rails can be. This book has been revised to cover what's new in Rails 6 including features such as WebPack, advanced JavaScript integration, Action Mailbox, Action Text, sy...
Clasificación: | Libro Electrónico |
---|---|
Otros Autores: | , , , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
[United States] :
Apress,
2020.
|
Edición: | 4th ed. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Intro
- Table of Contents
- About the Authors
- About the Technical Reviewer
- Acknowledgments
- What Is This Book About?
- Chapter 1: Introducing the Rails Framework
- The Rise and Rise of the Web Application
- The Web Isn't Perfect
- Why Use a Framework?
- Why Choose Rails?
- Rails Is Ruby
- Rails Encourages Agility
- Less Software
- Convention over Configuration
- Don't Repeat Yourself
- Rails Is an Opinionated Software
- Rails Is Open Source
- Rails Is Mature
- A High-Level Overview of Rails
- The MVC Cycle
- The Layers of MVC
- Models
- Controllers
- Views
- The Libraries That Make Up Rails
- Rails Is Modular
- Rails Is No Silver Bullet
- Summary
- Chapter 2: Getting Started
- An Overview of Rails Installation
- Installing on macOS Catalina
- Installing the Command Line Tools for Xcode
- Installing Homebrew
- Installing RVM
- Installing Rails
- Installing Node.js
- Installing Yarn
- Installing on Windows
- Installing Ruby
- Installing Rails
- Installing SQLite
- Installing Node.js
- Installing Yarn
- Installing on Linux
- Installing Ruby
- Installing Rails
- Installing SQLite
- Installing Node.js
- Installing Yarn
- Creating Your First Rails Application
- Starting the Built-In Web Server
- Generating a Controller
- Creating an Action
- Creating a Template
- Summary
- Chapter 3: Getting Something Running
- An Overview of the Project
- Creating the Blog Application
- Creating the Project Databases
- Creating the Article Model
- Creating a Database Table
- Generating a Controller
- Up and Running with Scaffolding
- Adding More Fields
- Adding Validations
- Generated Files
- Summary
- Chapter 4: Introduction to the Ruby Language
- Instant Interaction
- Ruby Data Types
- Strings
- Numbers
- Symbols
- Arrays and Hashes
- Language Basics
- Variables
- Operators
- Blocks and Iterators
- Comments
- Control Structures
- Methods
- Classes and Objects
- Objects
- Classes
- Ruby Documentation
- Summary
- Chapter 5: Working with a Database: Active Record
- Introducing Active Record: Object-Relational Mapping on Rails
- What About SQL?
- Active Record Conventions
- Introducing the Console
- Active Record Basics: CRUD
- Creating New Records
- Resetting the Database
- Using the new Constructor
- Using the create Method
- Reading (Finding) Records
- Finding a Single Record Using an ID
- Finding a Single Record Using first
- Finding All Records
- Finding with Conditions
- Updating Records
- Deleting Records
- Using destroy
- Using delete
- Deleting with Conditions
- When Good Models Go Bad
- Summary
- Chapter 6: Advanced Active Record: Enhancing Your Models
- Adding Methods
- Using Associations
- Declaring Associations
- Creating One-to-One Associations
- Adding the User and Profile Models
- Creating One-to-Many Associations
- Associating User and Article Models
- Creating a New Associated Object