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...
Update RubyGems and Passenger Bundler requires Rubygems >= 1.3.6. Run gem update --system if you have an older version.
Sometimes you want to fetch associations for an ActiveRecord that you already loaded, e.g. when it has deeply nested associations...
Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...
When you roll custom URLs with hacks like routing-filter, you can put a spec like this into spec/routing/routing_spec.rb:
the best damn presentation software a developer could ever love
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end
popthis is awesome when used with inaction_mailer. Setup inaction_mailer Install the gem: sudo gem install popthis
The Git stash does not work like a one-slot clipboard and you might shoot yourself in the foot if...
Capybara does not play nice with sites that have some actions protected by SSL, some not. A popular way to...
Our awesome collection of rspec helpers (formerly known as "spec_candy.rb") is now available as a gem. It works, it is...