Daniel Green's Homepage

Posts tagged under Ruby on Rails


SASS Variables in Compiled SCSS?

I recently noticed some SASS variables in the compiled CSS output of our Rails app.  I looked all over the place, trying to determine how I broke compilation, to no avail. The answer ended up being obscure but rather simple:... continue reading

SASS SCSS Ruby on Rails  

Rails, Sidekiq, and the Database Connection Pool

Update: The creator of Sidekiq, Mike Perham, quickly and correctly pointed out that standard ActiveRecord use inside Sidekiq should include automatic connection pool checkins when jobs are complete. I failed to realize that using ActiveRecord::Base.connection checks out a... continue reading

MySQL Ruby on Rails Sidekiq