Hint: There's another card with this helper for Cucumber features. Sometimes you feel like you need to stub some...

To avoid sending e-mails containing sensitive data unencrypted I strongly suggest you enable a confirmation dialog. Enigmail can show...

makandra dev

The Capybara API is somewhat hard for parse for a list of methods you can call on a Capybara node...

tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...

Don't simply test for the presence of the magic Paperclip attribute, it will return a paperclip Attachment object and...

When your Cucumber feature needs to browse the page HTML, and you are not sure how to express your query...

makandra dev

When you need to create a locale for a language variant (like Austrian for German), you probably don't want...

makandra dev
github.com

When you need to use diff in either some Ruby code or your Rails app, use the differ gem.

paperplanes.de

This post is not about devops, it's not about lean startups, it's not about web scale, it's...

en.wikipedia.org

Under the same origin policy, a web page served from server1.example.com cannot normally connect to or communicate with a server...

en.wikipedia.org

Cross-Origin Resource Sharing (CORS) is a browser technology specification, which defines ways for a web service to provide interfaces...

To offer files for download, use send_file. def download(file) send_file file.path, :disposition => 'attachment' end

vimdoc.sourceforge.net

If you are in the middle of a file and want to scroll, but don't want to move your...

addons.mozilla.org

The addon lets you set the format of the dates used for the year and month folders that the Archive...

This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...

When you have a program running in a hidden X screen (like with Xvfb for Selenium tests) you may want...

The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...

If you're writing a spec for an application using Resque, you may need to work off queues manually without...

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

Note: While the solution in this card should still work, we prefer another solution now: Hide your Selenium browser window...

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...

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...

Ubuntu comes with keyboard layouts like "Germany Eliminate Dead Keys", which are practical for programming. If you need to type...