<% require ‘yaml’ %> <% languages = YAML.load_file(‘config/languages.yml’) %> <% languages.each do |l| %> <% color = l[1][“color”] %> <% […]

add to ~/.irbrc: def copy(*args) IO.popen(‘pbcopy’, ‘r+’) { |clipboard| clipboard.puts args.map(&:inspect) }; end and then in irb: copy [1,2,3,4] “[1, […]

Short tutorial about setting up drone to test rails 4 app running on ruby 2.1. For us who working in […]

If you are using rvm you may have encountered some performance issue with ruby. For some detailed information of the […]

Highlight those debugger and binding.pry statements in vim: ” Make those debugger statements painfully obvious au BufEnter *.rb syn match […]

Ever bumped into this error message? Bundler::Fetcher::CertificateFailureError: Could not verify the SSL certificate for https://rubygems.org/. In RVM you can update […]

This defines a :Createtags command in vim: function! Ccreatetags() call system(“ctags –recurse=yes –languages=Ruby,C . `bundle list –paths`”) endfunction command Createtags […]

I can’t speak for you, but where I can, I like to use CoffeeScript because: it makes my life easier […]

I was wondering if there were a way to make this controller code more readable: events_controller.rb format.zip do if @event.zip_cache_up_to_date? […]