You can install rubygems 3.0.8 (released on February 18, 2020) to keep all the Gem::Specification#rubyforge_project deprecation warnings...
The old Chrome downloads bar had several advantages over the new subtle downloads dropdown: see all (many, at least) downloads...
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...
Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. We’ll look...
tl;dr: Always have your attachment path start with :rails_root/storage/#{Rails.env}#{ENV['RAILS_TEST_NUMBER']}/. The directory where you...
...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...
has_many :holidays validates_numericality_of :holiday_count end class Holiday < ActiveRecord::Base belongs_to :region after_save :update_holiday_count_in_region after_destroy :update_holiday_count_in...
region.update_attribute :holiday_count, region.holidays.count end end Note that there are probably better days to implement the holiday_count mechanism, but humor me for the sake of the...
If you have a replication error with MySQL and you know the "error" is okay (e.g. you've executed the...
...Rails booting a few seconds. In your binstubs, there should be something like this: begin load File.expand_path("../spring", __FILE__) rescue LoadError end Change it as follows. running_in_parallel...
...ENV.has_key?('TEST_ENV_NUMBER') || ARGV.any? { |arg| arg =~ /^parallel:/ } begin load File.expand_path("../spring", __FILE__) unless running_in_parallel rescue LoadError end That's it. bin/rspec your_spec.rb will now boot...
...s #find method raises an error if nothing could be found. #first should behave like #find used to. i18n requires Ruby >= 1.9 -> Add gem 'i18n', '< 0.7.0' # 0.7.0 requires Ruby...
Travis changed their default distribution from Ubuntu 14.04 (trusty) to 16.04 (precise). This might break your test setup for new...
Many box shadows will make your app unusable on smartphones and tablets Designing Beautiful Shadows in CSS
WProofreader is a spelling and grammar checking tool that integrates with textareas and numerous WYSIWYG editors. While it usually activates...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
This is an awful way to test whether a number is shown on the screen: Then I should see "5...
Install Ubuntu Server Download an image from this site Select File > New… to and follow the instructions, choose the .iso...
This is a problem when using Selenium with Firefox. We recommend using ChromeDriver for your Selenium tests. This setup allows...