If you would like to use language specific layout (e.g. background-images) in your applications stylesheets you can achieve this...
If you embedded web fonts in the past years (e.g. by copying CSS from a Font Squirrel @font-face kit...
Clearance is a gem that provides authentication functionality (e.g. login, logout). This note explains, how the clearance login, logout and...
Web fonts are awesome. After being restricted to Arial for two decades there is finally a cross-browser way to...
You can convert git commits into patch files. Those can be used to apply to a different repository [1] or...
The solution in this card is based on a stack overflow post by Leventix. If you need to make request...
If you want to know the exact hits on your website (or whatever logfile you want) for a specific date...
The Rails logger will store its content in a buffer and write it into the file system every 1000 lines...
In order to monitor a Rake task using God your Rake file must write a file with its process ID...
There is a new card about how to do this with the new AWS Command Line Interface
cURL makes a web request and shows you the response body. You can redirect the response body to /dev/null just...
Consider you have a website vhost listening to www.example.com, redirecting all incoming requests that do not talk about the configured...
If your application raises an error like ... Couldn't connect to the Solr server at http://127.0.0.1:8983/solr. 500 "Lock...
When you drag a file from a Nautilus window into a terminal window, the file's path will be pasted...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
Selenium does not speak SSL because it uses WEBrick that doesn't. When you use Selenium for Cucumber scenarios that...
Ever wondered how Rails talks to itself in a Cucumber feature? In Rails 3 you can do it like this...
If you have any class which requires access to some path methods generated by your routes. Even though you could...
Just add the parameter :post to the visit method: visit publish_entry_path, :post
Rails doesn't know which host it is running on. For generating links, it strips the hostname off the request...
When the Ruby parser module of Ruby-GetText comes across a file in one of its search directories (e.g. lib/scripts...
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...
If you get the error "413 Request Entity Too Large" from Nginx client_max_body_size is too low (default...