{"product_id":"2940150654211","title":"Easy Active Record for Rails Developers","description":"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.\u003cbr\u003e\u003cbr\u003eTable of Contents\u003cbr\u003e\u003cbr\u003eChapter 1. Introducing Models, Schemas and Migrations\u003cbr\u003eIn 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.\u003cbr\u003e\u003cbr\u003eChapter 2. Loading, Validating and Manipulating Data\u003cbr\u003eIn 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.\u003cbr\u003e\u003cbr\u003eChapter 3. Querying the Database\u003cbr\u003eIn 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.\u003cbr\u003e\u003cbr\u003eChapter 4. Introducing Associations\u003cbr\u003eBuilding 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.\u003cbr\u003e\u003cbr\u003eChapter 5. Mastering Web Forms\u003cbr\u003eYour 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.\u003cbr\u003e\u003cbr\u003eChapter 6. Debugging and Optimizing Your Application\u003cbr\u003eWhile 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.\u003cbr\u003e\u003cbr\u003eChapter 7. Integrating User Accounts with Devise\u003cbr\u003eOffering 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.","brand":"W.J. Gilmore, LLC","offers":[{"title":"Default Title","offer_id":46562825863409,"sku":"2940150654211","price":29.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0674\/5433\/7265\/files\/2940150654211_p0.jpg?v=1765891961","url":"https:\/\/shop.barnesandnoble.com\/products\/2940150654211","provider":"Barnes \u0026 Noble","version":"1.0","type":"link"}