Hello There, I’m Aaron Miler Here are some of my ramblings

Dynamic SCSS Rendering with Rails

Jun 5th, 2016

Dynamically Rendering SCSS in Rails

Recently at I came across a problem where I needed to dynamically include a stylesheet, or scss snippet depending on what kind of content I was showing. My first inclination was to use something like this:

# app/views/layouts.application.html.erb
<%= yield :head %>

# app/views/some_controller/some_view.html.erb
<% content_for :head do %>
  <%= stylesheet_link_tag '/path_to/stylesheet.css' %>
<% end %>
Read on →

Creating Docket

Feb 9th, 2015

Last year I bought a full year calendar to hang on my wall. It was a pretty great way for me to get at a glance information for what I had going on. Unfortunately I couldn’t find the one I bought last year, so this year I’m going without one.

Read on →

How Running Affects My Development

Jun 21st, 2014

In the beginning of March, my girlfriend and I rescued an 11 month of Siberian Husky. We decided to name him Helo (after Battlestar of course) and he is quite the handful. Read on →

Elasticsearch + Jbuilder = Easymode

Apr 6th, 2014

After pondering how to deal with conditional logic in Elasticsearch queries. I finally realized that the query DSL for Elasticsearch is just structured JSON. Which is why Ruby didn’t like when the syntax was messed up.

Read on →

Using Elasticsearch with Ruby and Rails

Mar 30th, 2014

At work I’ve been working on replacing our current product search (currently powered by a SaaS) with Elasticsearch. When I first started I set out to find what Ruby gem I should use on this project.

I found a couple of very impressive gems, such as Search Kick, but unfortunately Search Kick currently doesn’t support Mongoid, so I kept looking.

Read on →