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

wiki.nginx.org

If you get the error "413 Request Entity Too Large" from Nginx client_max_body_size is too low (default...

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

Select as many rows as you'd like to insert by dragging over the row numbers on the left. Then...

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

codeodor.com

Code example for implementing Cross-Origin Resource Sharing (CORS) in Rails.

robots.thoughtbot.com

I think this pattern is really useful not just for upgrading suites from Webrat, but really anywhere you have an...

makandra dev
web.archive.org

When you need to zip up files in Ruby, use zipruby. sudo gem install zipruby You can add existing files...

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

Passenger gives you the possibility to define in which environment your app should be started. This has to be added...

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: