Use Segment.io’s Ruby library to track usage patterns within a Rails application.
Don’t manually setup your new laptop with a series of copy-and-pasted steps from some blog post. Leverage automation and the open source community to save time and get a more stable result.
Let’s make I18n on Rails better, quickly and easily. These tips have helped...
Why is it that when you assign a property to an Active Record model and read it back, the value isn’t always the same?
Developers who are well versed in Ruby on Rails (or other MVC...
Mount a Sinatra app via Rails routes or
use Rack::Builder
if you need a custom middleware stack
for your Sinatra app.
Sleep better at night knowing your migrations are reversible.
Buy, prepare, and deploy an SSL certificate from DNSimple for your Heroku app.
Split your spec_helper.rb
file into a
minimal spec_helper.rb
file and a rails_helper.rb
file
to load only the necessary dependencies in a spec.
This is now the default in Rails.
Calculations across objects are ripe for using a map and an inject but frequently, with ActiveRecord, the solution is more elegant and faster if we can have SQL do the work instead.