When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
This card explains how to install RubyMine for the first time. If you want to upgrade an existing RubyMine installation...
Have you guys ever done the math on that? You asked or allowed for 24000 interruptions from literally every human...
Selenium has been the siren song that continually calls out to us. Unfortunately, in practice we’ve been unable to...
If your pidgin IM fails to connect to ICQ, you may need to update it. The ubuntu default sources are...
This document describes an agreement between web servers and search engine crawlers that allows for dynamically created content to be...
Use this scope: class Stick named_scope :shuffled, lambda { last_record = last { :conditions => [ 'id >= ?', rand(last_record.id) ] } if last_record }
This note describes how to setup a box running Ubuntu to share its Internet connection with another PC.
Use this MySQL command to show further info about a table: SHOW CREATE TABLE tags; This will output a table...
In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
If you previously used version 2.x of Thunderbird and upgraded to 3.x (for example through an Ubuntu release...
You need to install the following packages before you can build the Nokogiri gem: sudo apt-get install libxml2-dev...
If you want to see how long your database queries actually take, you need to disable MySQL's query cache...
This post will describe how I stumbled upon a code path in the Linux kernel which allows external programs to...
You need to install the following packages before you can build the Paperclip gem: sudo apt-get install imagemagick librmagick...
When Paperclip attachments should only be downloadable for selected users, there are three ways to go. The same applies to...
Physical servers worked, EC2 did not.
Call with the server's hostname (and user if you have no SSH agent), e.g. install-gems-remotely my.server.com
If you want to exclude your staging site from Google using robots.txt without running the risk to forget deleting the...
This is an awesome gadget in your toolbox, even if your test coverage is great. gem install ruby-debug (Ruby...
Our gem Mail Magnet allows you to override e-mail recipients in ActionMailer so all mails go to a given...
This might eventually be fixed by Rails itself.\ Right now this is the way to have the rails_xss plugin...
One option is to use partials. Or you can set the @template field to the name of another action:
When working with times and dates in Rails applications, you need to deal with the following problem: In Rails, Time...