Search (reset)

Episodes

Benchmark Ruby Code

Episode #262 10-4-2020 free

It's easy to accidentally write slow code in our applications. In this episode, we look at how we can benchmark our code and examples of some methods which are slower than others.

Nested Forms from Scratch with StimulusJS

Episode #186 5-5-2019 free

Using StimulusJS controllers, adding nested forms to a Rails application is easy and unobtrusive. In this episode, we look at an alternative way of creating nested forms without the Cocoon gem.

Improving Partial Loading Performance

Episode #145 8-5-2018 free

N+1 queries can make an application slow. Having queries called within views can also slow down an app as well as making it less extendable.

Benchmarking and Refactoring the content_for View Helper

Episode #90 7-23-2017 free

In a recent blog post, we looked into the content_for view helper to render breadcrumbs. Once we got the feature working, it's time to refactor the feature to lower technical debt.

Autocomplete with HTML Results

Episode #83 6-4-2017 free

Working with an autocomplete can be very simple. However, things get complicated when you try to use HTML markup in the displayed results. Learn how to use HTML markup within your autocomplete results!

Cropping Images with JCrop

Episode #77 4-23-2017 free

Extend your image upload functionality with JCrop. Learn to redirect the user to a crop page once they have uploaded their image and save versions of the cropped images.

Javascript Select Form Fields with Chosen

Episode #76 4-16-2017 free

Chosen is a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. Learn how to use Chosen in a few different ways in this episode; Rails form builder and Simple Form.

Nested Forms with Cocoon

Episode #71 3-12-2017 free

Using the unobtrusive gem, Cocoon, learn how to handle multiple models in a single form with accepts_nested_attributes_for.

Nested Forms from Scratch

Episode #70 3-5-2017 free

Learn how to handle multiple models in a single form with accepts_nested_attributes_for and learn how to add and remove nested records through JavaScript.

Searchkick and Elasticsearch

Episode #65 1-29-2017 free

Add full text searching using Searchkick and Elasticsearch. Here I will show the steps involved in adding this search to an existing application and a sample of autocomplete functionality.