Easy Active Record for Rails Developers
Easy Active Record for Rails Developers is the ultimate guide to building database-driven web applications using the powerful Active Record ORM. You'll follow along with the creation of a fun web application for retro arcade enthusiasts.

Table of Contents

Chapter 1. Introducing Models, Schemas and Migrations
In this chapter you�ll learn how to create the models used to manage the application�s business logic and provide convenient interfaces to the database. You�ll also learn how to use a great feature called migrations to create and evolve your database schema. I'll conclude with a section explaining how to begin testing your models with RSpec and factory_girl.

Chapter 2. Loading, Validating and Manipulating Data
In this chapter you�ll learn how to load an initial data set into your application, as well as create and manipulate data. Because we�ll want to avoid persisting incomplete or invalid data to the database, you�ll also learn how to enhance your application models using a variety of validators. We'll conclude the chapter by writing tests for ensuring you�ve fortified your models with enough validators to ensure unwanted data can�t slip through the cracks.

Chapter 3. Querying the Database
In this chapter you'll learn all about Active Record�s array of powerful query features, including how to efficiently query for all records, retrieve a specific record according to primary key, select only desired columns, order, group and limit results, retrieve random records, and paginate results. You�ll also learn how to integrate these queries with controllers and view to create listing and detail pages. We�ll also enhance the models using a fantastic feature known as a scope.

Chapter 4. Introducing Associations
Building and navigating table relations is an standard part of the development process even when working on the most unambitious of projects, yet this task is often painful. Not so with Rails. Thanks to a fantastic feature known as Associations, defining and traversing these associations is a fairly trivial matter. In this chapter I�ll show you how to define, manage, and interact with the belongs_to, has_one, has_many, has_many :through, and the has_and_belongs_to_many associations.

Chapter 5. Mastering Web Forms
Your application�s web forms will preferably interact with the models, meaning you�ll need to understand Rails� form generation and processing capabilities in order to integrate with your models in the most efficient way possible. While creating simple forms is fairly straightforward, things can get complicated fast when implementing more ambitious solutions such as forms involving multiple models. In this chapter I�ll go into extensive detail regarding how you can integrate forms into your applications, covering both Rails� native form building solutions as well as several approaches offered by popular gems.

Chapter 6. Debugging and Optimizing Your Application
While it�s fun to brag about all of your project�s cool features, they often come at great expense of your time and brainpower. Much of the effort was likely spent figuring out problems such as why a query was running particularly slow or the reason a complex association wasn�t working as expected. In this chapter I'll introduce you to several tools and techniques that can automate much of the debugging and optimization process.

Chapter 7. Integrating User Accounts with Devise
Offering users the opportunity to create an account opens up a whole new world of possibilities in terms of enhanced interactivity. Yet there are quite a few moving parts associated with integrating even basic account features, including account registration, sign in, sign out and password recovery interfaces, and access restriction. Fortunately the fantastic Devise gem greatly reduces the amount of work otherwise required to implement account creation, authorization and management features, and in this chapter I�ll introduce you to this gem's many wonderful features.
1120346701
Easy Active Record for Rails Developers
Easy Active Record for Rails Developers is the ultimate guide to building database-driven web applications using the powerful Active Record ORM. You'll follow along with the creation of a fun web application for retro arcade enthusiasts.

Table of Contents

Chapter 1. Introducing Models, Schemas and Migrations
In this chapter you�ll learn how to create the models used to manage the application�s business logic and provide convenient interfaces to the database. You�ll also learn how to use a great feature called migrations to create and evolve your database schema. I'll conclude with a section explaining how to begin testing your models with RSpec and factory_girl.

Chapter 2. Loading, Validating and Manipulating Data
In this chapter you�ll learn how to load an initial data set into your application, as well as create and manipulate data. Because we�ll want to avoid persisting incomplete or invalid data to the database, you�ll also learn how to enhance your application models using a variety of validators. We'll conclude the chapter by writing tests for ensuring you�ve fortified your models with enough validators to ensure unwanted data can�t slip through the cracks.

Chapter 3. Querying the Database
In this chapter you'll learn all about Active Record�s array of powerful query features, including how to efficiently query for all records, retrieve a specific record according to primary key, select only desired columns, order, group and limit results, retrieve random records, and paginate results. You�ll also learn how to integrate these queries with controllers and view to create listing and detail pages. We�ll also enhance the models using a fantastic feature known as a scope.

Chapter 4. Introducing Associations
Building and navigating table relations is an standard part of the development process even when working on the most unambitious of projects, yet this task is often painful. Not so with Rails. Thanks to a fantastic feature known as Associations, defining and traversing these associations is a fairly trivial matter. In this chapter I�ll show you how to define, manage, and interact with the belongs_to, has_one, has_many, has_many :through, and the has_and_belongs_to_many associations.

Chapter 5. Mastering Web Forms
Your application�s web forms will preferably interact with the models, meaning you�ll need to understand Rails� form generation and processing capabilities in order to integrate with your models in the most efficient way possible. While creating simple forms is fairly straightforward, things can get complicated fast when implementing more ambitious solutions such as forms involving multiple models. In this chapter I�ll go into extensive detail regarding how you can integrate forms into your applications, covering both Rails� native form building solutions as well as several approaches offered by popular gems.

Chapter 6. Debugging and Optimizing Your Application
While it�s fun to brag about all of your project�s cool features, they often come at great expense of your time and brainpower. Much of the effort was likely spent figuring out problems such as why a query was running particularly slow or the reason a complex association wasn�t working as expected. In this chapter I'll introduce you to several tools and techniques that can automate much of the debugging and optimization process.

Chapter 7. Integrating User Accounts with Devise
Offering users the opportunity to create an account opens up a whole new world of possibilities in terms of enhanced interactivity. Yet there are quite a few moving parts associated with integrating even basic account features, including account registration, sign in, sign out and password recovery interfaces, and access restriction. Fortunately the fantastic Devise gem greatly reduces the amount of work otherwise required to implement account creation, authorization and management features, and in this chapter I�ll introduce you to this gem's many wonderful features.
29.0 In Stock
Easy Active Record for Rails Developers

Easy Active Record for Rails Developers

by W. Jason Gilmore
Easy Active Record for Rails Developers

Easy Active Record for Rails Developers

by W. Jason Gilmore

eBook

$29.00 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers

LEND ME® See Details

Overview

Easy Active Record for Rails Developers is the ultimate guide to building database-driven web applications using the powerful Active Record ORM. You'll follow along with the creation of a fun web application for retro arcade enthusiasts.

Table of Contents

Chapter 1. Introducing Models, Schemas and Migrations
In this chapter you�ll learn how to create the models used to manage the application�s business logic and provide convenient interfaces to the database. You�ll also learn how to use a great feature called migrations to create and evolve your database schema. I'll conclude with a section explaining how to begin testing your models with RSpec and factory_girl.

Chapter 2. Loading, Validating and Manipulating Data
In this chapter you�ll learn how to load an initial data set into your application, as well as create and manipulate data. Because we�ll want to avoid persisting incomplete or invalid data to the database, you�ll also learn how to enhance your application models using a variety of validators. We'll conclude the chapter by writing tests for ensuring you�ve fortified your models with enough validators to ensure unwanted data can�t slip through the cracks.

Chapter 3. Querying the Database
In this chapter you'll learn all about Active Record�s array of powerful query features, including how to efficiently query for all records, retrieve a specific record according to primary key, select only desired columns, order, group and limit results, retrieve random records, and paginate results. You�ll also learn how to integrate these queries with controllers and view to create listing and detail pages. We�ll also enhance the models using a fantastic feature known as a scope.

Chapter 4. Introducing Associations
Building and navigating table relations is an standard part of the development process even when working on the most unambitious of projects, yet this task is often painful. Not so with Rails. Thanks to a fantastic feature known as Associations, defining and traversing these associations is a fairly trivial matter. In this chapter I�ll show you how to define, manage, and interact with the belongs_to, has_one, has_many, has_many :through, and the has_and_belongs_to_many associations.

Chapter 5. Mastering Web Forms
Your application�s web forms will preferably interact with the models, meaning you�ll need to understand Rails� form generation and processing capabilities in order to integrate with your models in the most efficient way possible. While creating simple forms is fairly straightforward, things can get complicated fast when implementing more ambitious solutions such as forms involving multiple models. In this chapter I�ll go into extensive detail regarding how you can integrate forms into your applications, covering both Rails� native form building solutions as well as several approaches offered by popular gems.

Chapter 6. Debugging and Optimizing Your Application
While it�s fun to brag about all of your project�s cool features, they often come at great expense of your time and brainpower. Much of the effort was likely spent figuring out problems such as why a query was running particularly slow or the reason a complex association wasn�t working as expected. In this chapter I'll introduce you to several tools and techniques that can automate much of the debugging and optimization process.

Chapter 7. Integrating User Accounts with Devise
Offering users the opportunity to create an account opens up a whole new world of possibilities in terms of enhanced interactivity. Yet there are quite a few moving parts associated with integrating even basic account features, including account registration, sign in, sign out and password recovery interfaces, and access restriction. Fortunately the fantastic Devise gem greatly reduces the amount of work otherwise required to implement account creation, authorization and management features, and in this chapter I�ll introduce you to this gem's many wonderful features.

Product Details

BN ID: 2940150654211
Publisher: W.J. Gilmore, LLC
Publication date: 08/15/2014
Sold by: Barnes & Noble
Format: eBook
File size: 2 MB

About the Author

W. Jason Gilmore is a software developer and consultant with more than 15 years of experience helping companies of all sizes build amazing solutions. He is the author of six books, including the bestselling �Beginning PHP and MySQL, Fourth Edition� and �Easy PHP Websites with the Zend Framework, Second Edition�.

Currently, Jason is lead developer of a Ruby- and Rails-driven, MySQL- and Neo4j-backed e-commerce analytics project for a globally recognized publisher.

Over the years Jason has published more than 300 articles within popular publications such as Developer.com, JSMag, and Linux Magazine, and instructed hundreds of students in the United States and Europe. Prior to his current role, he led the successful development and deployment of a 10,000+ product e-commerce project. Jason is cofounder of the wildly popular CodeMash Conference, the largest multi-day developer event in the Midwest.

Away from the keyboard, you�ll often find Jason hunched over a chess board or having fun with DIY electronics.
From the B&N Reads Blog

Customer Reviews