Hooks lets you define hooks declaratively in your ruby class. You can add callbacks to your hook, which will be...
Even when you're using bundler, it might be significant in which order your gems are listed in your Gemfile...
Ruby gem that provides an AR-style interface for the Pivotal Tracker API.
If you need to call a state_machine event and do not want to re-define resource_controller's create...
These steps are now part of Spreewald. This note describes a Cucumber step that lets you write this:
Note that you should disable the Java plug-in in your browsers after installation. Ubuntu >= 12.04 Java 11
Cucumber step argument transforms can be a powerful way to make your steps more flexible. Note however that if your...
You can use record.send(:update_without_callbacks) or record.send(:create_without_callbacks) This can be used as a...
You don't need a Rails application to use Sass. Even when you're working on a static site you...
It’s pretty common for projects hosted on GitHub to receive “pull requests”: requests from people who have cloned your...
When using virtual attributes, the attached trait can be useful to automatically copy errors from one attribute to another.
power-rake db:migrate VERSION=20100913132321 By default the environments development, test, cucumber and performance are considered...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
In modern Rails versions you can also use ActiveRecord's pluck method. User.active.pluck(:id) => [1, 5, 23, 42]
delocalize provides localized date/time and number parsing functionality for Rails.
First of all: You could just use RVM which would make the pain go away. If for some reason you...
You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...
This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...
Capistrano task for Bundler.
When submitting textareas, browsers sometimes include carriage returns (\r) instead of just line feeds (\n) at the end of each...
Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com
Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...
There will probably be better solutions as we become more experienced with using Bundler, and more command line tools become...
If you added a file by mistake, you can unstage it (but keep local changes) by saying git reset HEAD...