In this video, we are going to walk through how to create a custom database query scope in our Rails application.
In this guide we are going to refactor our `post_spec.rb` because it's starting to get a bit unwieldy.
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.
In this guide we're going to build a Rails view helper method to dynamically add labels to records based on their status.
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.
In this guide we are going to walk through the process of installing the puma web server.
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.
This guide walks through how to fix the integration tests for the post pages so the tests pass and follow BDD best practices.
In this guide we'll style the show page for posts, including listing off each of the attributes stored in the database.
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.
devCamp does not support ancient browsers.
Install a modern version for best experience.