When you need to store structured data (like Ruby hashes) in a single database column with ActiveRecord, a simple way...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
UI sortable helps reordering items with drag 'n drop. It works quite fine. Proven configuration for sorting table rows
To upload a file via AJAX (e.g. from an ) you need to wrap your params in a FormData object.
...no guarantee the form submission has completed in Selenium before Ruby updates the record behind the scenes. In this case you might lose the update because the sign in process...
We will be installing rbenv and ruby-build from our own fork, not from the Ubuntu sources. Installing rbenv
Example (broken in IE): flex: 0 1 calc(50% - 20px) Workaround: flex-basis: calc(50% - 20px) flex-grow: 0 // Default...
matically. Automatic loading is disabled when this option is specified, and all loading becomes explicit. Files under directories named "support" are always loaded first. [...] $ cucumber -r features
Ever seen this error when using Graticule? Numerical argument out of domain - acos Similarly to the to_sql problem for...
Whenever Firefox updates, all your Cucumber features that use Selenium break. This is annoying. In order to remedy this, version...
...to enter localhost.ssl as Common Name when asked. This is to make your browser believe the certificate is owned by the localhost domain. Add localhost.ssl to your hosts file
...an :expires options, the default is when the user closes her browser window (I believe). Expiration of Clearance tokens In recent versions of clearance, authentication tokens are stored in a...
When your application is running on a multi-server setup, application logs are stored per server (unless you choose a...
When you need to patch an existing gem, one way is to "vendor" the gem by copying it into the...
...has_many :users, through: :invitations, include: :user, order: 'users.name' end class Invitation < ActiveRecord::Base belongs_to :party belongs_to :user after_create :send_invite def send_invite other_user_names...
...application and is likely to happen on Rails 4 applications as well. Your best bet is to stay away from using them. Most times, it's good enough to actually...
If Rails or Rake are complaining about a missing gem that is listed in your Gemfile.lock and the listed version...
Consul 0.9 comes with many new features to optimize powers that only check access to a given record. e.g. Power.current.post...
In order to lower friction and the hurdles to pass, users need to be provided with a reason to trust...
This is now part of geordi. Please don't follow the instructions below, if you use geordi. Inspired by the...
tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...
When text renders differently in Firefox and Chrome, it may be caused by a font alias that both browsers handle...
...After('@chrome320x480') do Capybara.use_default_driver end You can use either chromium or chrome beta (as of 2012.05 the Version "19.0.1084.41 beta" works), or any other member of the family...
...bart@simpson.com" and the password "secret" When I sign in as "bart" Then I should bee on the home page And "logout" should be reachable
If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...
Instead, I'm now using a "full" selector to avoid the broken behavior: page.find('.message:nth-of-type(1)', :text => 'Hello World').text => "Hello World" page.find('.message:nth...