Limit search to available items
Book Cover
E-book

Title Beginning Rails 6 : from novice to professional / Brady Somerville, Adam Gamble, Cloves Carneiro Jr., Rida Al Barazi
Edition 4th ed
Published [United States] : Apress, 2020
Online access available from:
Safari O'Reilly books online    View Resource Record  

Copies

Description 1 online resource
Contents 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
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
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
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
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
Summary 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, system and parallel testing, Action Cable testing, and more. Beginning Rails 6 gently guides you through designing your application, writing tests for the application, and then writing the code to make your application work as expected. It is a book that will guide you from never having programmed with Ruby, to having a Rails 6 application built and deployed to the web. After reading and using this book, you'll have the know-how and the freely available source code to get started with your own Rails-based web development in days. You will: Create Ruby on Rails 6 web applications from the bottom up Gain the basics of the Ruby programming language Combine all the components of Rails to develop your own web applications Apply TDD to make sure your application works exactly as you expect Use Git source control and best practice techniques to create applications like a pro
Notes Includes index
Subject Ruby on rails (Electronic resource)
Ruby (Computer program language)
Web site development.
Computer programming.
Programming languages (Electronic computers)
Form Electronic book
Author Al Barazi, Rida.
Carneiro, Cloves.
Gamble, Adam.
Somerville, Brady
ISBN 1484257162
9781484257166