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 %>
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.
I’ve started created a lot of my projects using the tools Thoughtbot puts out there. One of the tools I’ve recently started using is Broubon and Neat. Bourbon is a lightweight mixin library for Sass, and Neat is a grid framework.
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.