Use protocol independent URLs whenever possible so that the browser will choose the protocol related to the protocol which the...
When I upgraded from 0.5.4 PDFKit deadlocked or crashed when an ApplicationController::RouteError occured. If this error happens only because...
Ubuntu 12.04 LTS x64, Ruby 1.8.7, Rails 2.13, PDFKit 0.5.4, Phusion Passenger Apache 2 I ran into this, when I...
Weighttp is threaded and might exhaust resources of an application better than ApacheBench or httperf. You need libev installed.
Install and configure the AWS Command Line Interface Show existing certificates to test if the AWS Cli is working:
I'm creating certificate requests with this command: openssl req -new -out www.example.com.csr -keyout www.example.com.key -newkey rsa:2048 -nodes
We proudly release our safe_cookies middleware into public beta and just published it on Github. Features are:
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
If you need to test interaction with a remote API, check out the VCR gem as an alternative to Webmock...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
You might not know that Rails disables CSRF protection in tests. This means that if you accidentally forget to send...
Chrome extension that shows all info from your rails log (like parameters, response times, view rendering times, DB requests) inside...
If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...
After running bundler / gem install I could not load nokogiri lately. It died with cannot load such file -- nokogiri/nokogiri.
Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...
Consul 0.10.0 now allows multiple power mappings for nested resources. When using nested resources you probably want two power
In order to keep the controllers directory tidy, we recently started to namespace controllers. With the :controller option you can...
Shared example groups are a useful RSpec feature. Unfortunately the default directory structure generated by rspec-rails has no obvious...
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...
...}. These options should be helpful...
We tend to use database transactions as a magic bullet to get rid of all our concurrency problems. When things...
The linked page lists and explains global Ruby "dollar" variables, such as: $: (load path) $* (ARGV) $? (Last exit status) $$ (PID)
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...