If you have this problem when you update your FreeBSD Ports: ===>>> Launching child to update ruby19-iconv-1.9.3.547,1 to...
Since we are using LoDash instead of UnderscoreJS in recent/current projects, you should keep in mind that their syntax is...
bower-rails is a great solution for managing vendored assets in your Rails app. It feels especially much more convenient...
JavaScript structures that include circular references can't be serialized with a"plain" JSON.stringify. Example: a = { name: 'Groucho' };
Creating records in specs can be so fast that two records created instantly after one another might have the same...
Returning an empty scope can come in handy, e.g. as a default object. In Rails 4 you can achieve this...
We upgraded a Rails 2 application to Rails 3.2 and Ruby 2.1, changed the mysql adapter from mysql to mysql2...
This may be hard to find in the docs, but if you want CoffeeScript classes that instantiate their properties from...
Modern browsers natively suppport file pickers that allow the user to choose multiple files at once. To activate this feature...
A collection of useful filters for AngularJS, e.g. for fuzzy string searching, displaying numbers as percentages an more.
class Document < ActiveRecord::Base scope :any_tags, -> (tags){ where('tags && ARRAY[?]', tags) } scope :all_tags, -> (tags){ where('tags @> ARRAY...
Create beautiful Javascript charts with one line of Ruby. Promising chart library for easily rendering charts with Google Charts.
tl;dr: Use with_index ActiveRecord's find_each with index If you do not provide a block to find...
Have you tried the Search everywhere dialog? You can open it by pressing Shift twice.
Nice tutorial about packaging Ruby bindings to your API in a Ruby gem, with tests using VCR casettes.
To avoid n+1 queries, you want to eager-load associated records if you know you need to access them...
Cookies without an expiration timestamp are called "session cookies". [1] They should only be kept until the end of the...
There are different ways to run rake: On Rails 4.1+ projects, you have Spring and its binstubs which dramatically improve...
In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug...
The flip-flop operator is a hotly contested feature of Ruby. It's still struggling to find an idiomatic use...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
Let's say you have two screens: Show a given project Show a report for all projects Ideally you want...
Sometimes you need complex expectations on method arguments like this SomeApi.should_receive(:find).with(:query => '*foo*', :sort => 'timestamp ASC', :limit...
PDFKit converts a web page to a PDF document. It uses a Webkit engine under the hood...