The (admittedly crazy) goal of this Gem is to be able to format/split all phone numbers in the world.
“Fat models” cause maintenance issues in large apps. Only incrementally better than cluttering controllers with domain logic, they usually represent...
In a Rails application, *_spec.rb files get special treatment depending on the file's directory. E.g. when you put a...
Makes a robust determination of a user's timezone through Javascript.
Richard Powell presents a collection of CSS styling advice that's mainly taken from SMACSS. Although at makandra we're...
Turbolinks makes following links in your web application faster. Instead of letting the browser recompile the JavaScript and CSS between...
The linked slidedeck holds many tips, of which I list the most interesting to me below DATA and END
Holly Schinsky from Adobe shows some of Bootstrap's capabilities. The combination of explanation, screenshots and source code makes it...
If you get this warning on your local machine one of these steps might help: Rebuilt the gem with the...
If some of your JavaScripts fail on Internet Explorer, but only in staging or production environments, chances are that JavaScript...
Never ever declare your associations with a string, especially when doing metaprogramming. A common mistake is something like # WRONG
You're using exception_notification and want to send exception mails within a model. Here's how. The ExceptionNotifier class...
Browsing the git stash is a bit tricky. Here is how to see the changes without applying them:
Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
to_file has been removed in Paperclip 3.0.1. Instead of using File to access Paperclip storage objects (like this: File.read...
Today I got a better understanding of how git works, in particular what git checkout and git reset do.
The ActionMailer in Rails 2 depends on a buggy version of TMail, which sometimes inserts a blank line into the...
Simply use OpenStruct#to_h to receive an OpenStruct's hash representation. In older Rubies you need OpenStruct#marshal_dump...
simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...
Given you store files on Amazon S3 and you need to stream those files out to people while you don...
Ever wanted autocompletion for paths from paths.rb in Cucumber? This card lets you write your steps like this:
This plugin makes it easy to add fit-to-fill background video to websites. It can play silent ambient background...