Resque comes with its own dashboard (Resque server) that you can mount inside your Rails 3 application with #config/routes.rb:

Note: If you are currently working with Ruby 1.8.7 or 1.9.3, we recommend to upgrade to Ruby 2.1 first. From...

File.chmod(0604, '/path/to/file') # rw----r-- The leading zero is meaningful.

This note describes how to kick a user out of a Rails application after she hasn't requested an action...

When you create a temporary file (e.g. to store a generated Excel sheet) and try to send it to the...

In Rails 2, you could use link_to_remote...

...:update => 'id' to automatically replace the content of $('#id').

If you use Selenium and Launchy to open web pages, you might run into an error saying "Your Firefox profile...

Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...

We usually generate our commit messages from Pivotal Tracker IDs and titles, like [#15775609] Index view for conflicts

Sometimes you need a file of some size (possibly for testing purposes). On Linux, you can use dd to create...

robots.thoughtbot.com

We are changing our name from Hoptoad to Airbrake. You see, some folks much larger than us reached out and...

With gem dependency it is possible to check the dependencies for your gem before you install it.

Regular expressions can have something called "zero-width look-behind assertions". This means that you want a pattern to be...

stackoverflow.com

When you double-tap a string of text on an iPhone or iPad a complicated context menu for copying and...

When you generate a URL in a mailer view, ActionMailer will raise an error unless you previously configured it which...

Install Ruby from the Ubuntu repository: sudo apt-get install ruby ruby-dev \ ruby is the meta package. If you...

Here are some popular mistakes when using nested forms: You are using fields_for instead of form.fields_for.

sudo apt-get install sqlite3 libsqlite3-dev sudo gem install sqlite3-ruby

The step definition below allows you to write: Then I should see a link labeled "Foo" But I should not...

When you render a nested form for a Movie which has_many :actors, you want to render the right number...

Here is how to switch your Selenium to Chrome: Make sure you've got a recent version of chromedriver in...

Ever wondered if there is a reverse for Rails' .each(&:to_s) idiom? Turns out there is... You probably already...

apidock.com

This is somewhat similar to the touch command of Linux: FileUtils.touch 'example.txt', :mtime => Time.now - 2.hours If you omit the :mtime...

Sometimes, when running a rake task, RubyGems 1.8.5 raises an error: rake aborted! undefined method `specifications' for "/usr/lib/ruby/gems/1.8":String