Building Advanced Features in Rails


Not CompletedHow to Build a Custom Database Query Scope in Rails

In this video, we are going to walk through how to create a custom database query scope in our Rails application.

Not CompletedHow to Refactor Integration Tests with RSpec and Capybara

In this guide we are going to refactor our `post_spec.rb` because it's starting to get a bit unwieldy.

Not CompletedLearn How to Lock Records in Rails to Prevent Editing

In this guide we are going to create one more rule: If an admin user has approved a post, then users cannot edit that post. Essentially, we have to lock approved records so they can't edit be edited.

Not CompletedCreating a Custom View Helper in Rails

In this guide we're going to build a Rails view helper method to dynamically add labels to records based on their status.

Not CompletedHiding Elements in the View Based on Pundit Permissions

In this guide we are going to remove the Edit link for those posts that have a status of approved. Thankfully this is quite easy to implement since we're using Pundit to manage our permission structure.

Not CompletedHow to Install and Run the Puma Web Server in Rails

In this guide we are going to walk through the process of installing the puma web server.

Not CompletedAdding Overtime Hours to the Post Model with Validations

In this guide, we are going to add another field called hours to our posts database table. This is an important field, since this application's goal is managing overtime hours. I didn't add it earlier because I don't like to add items until I'm ready to use them.

Not CompletedUpdating Integration Tests

This guide walks through how to fix the integration tests for the post pages so the tests pass and follow BDD best practices.

Not CompletedStyling the Show Page View Template

In this guide we'll style the show page for posts, including listing off each of the attributes stored in the database.

Not CompletedIntegrating Icons into Views

I'm not a big fan of links as I don't think they look professional. So, in this video, we are going to replace the edit and delete links with some nice-looking icons.

Quizzes


Building Advanced Features in Rails
    Unsupported Browser

    devCamp does not support ancient browsers.
    Install a modern version for best experience.