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.
Whenever you create a table from a database migration, remember to add updated_at and created_at timestamps to that...
Today I ran into trouble installing therubyracer on Ruby 1.8. The installation failed with *** extconf.rb failed *** Could not create Makefile...
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
You're better off using debugger-ruby_core_source: gem install debugger-ruby_core_source If you can't do...
It is good programming practice to Don't Repeat Yourself (or DRY). In Ruby on Rails we keep our code...
So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...
If you want to have routes that are only available in tests (e.g. for testing obscure redirects), you can use...
There may be reasons to change the locale of your Postgres cluster. A popular one is your development system's...
The mysql2 gem in version 0.3.13 might break while compiling on older patch releases of Ruby 1.9.3 within rvm:
With Rails 4, Concerns have become the “official” solution to the big-models problem. However, there’s a fair amount...
The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...
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...
I had some problems with Git and the file spec/fixtures/ČeskýÁČĎÉĚÍŇÓŘŠŤÚŮÝŽáčďéěíňóřšťúůýž. After pulling the latest commits, it would show that...
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...
For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...
The new exception_notification has awesome options like :ignore_crawlers => true and :ignore_if => lambda {...
...}. These options should be helpful...