If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...

To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...

I have a form with a dynamic number of fields. Submitting it worked fine until I tried out a very...

makandra dev

...willy@astor.de" And I follow "Cancel account" Then I should see "Account canceled" By going beyond the single line descriptions we've accustomed to, we can provide all the information that...

Disclaimer This card is a collection of guides and things to have in mind when upgrading to a specific version...

If you need to make an HTTPS connection to a host which uses an expired certificate, do not disable certificate...

When accepting GIF images, you will also accept animated GIFs. Resizing them can be a time-consuming task and will...

When you use a belongs_to or has_many macro you might be surprised that the methods that it generates does not override a method with the same name. Take...

class Project < ActiveRecord::Base def user "foo" end belongs_to :user end Project.new.user still returns "foo". The reason for this is that what belongs_to does is actually...

...existing bash script to work for commits that are referencing Linear IDs. A core benefit of our convention to prefix commits by their corresponding issue ID is that we can...

...easily detect commits that belong to the same issue. You can either do that manually or use the bash script below. It can either be placed in your .bashrc or...

Here is how to start your Rails application to accept both HTTP and HTTPS in development. gem install passenger

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote...

atlassian.com

Git log offers useful options for filtering. This card provides a short overview. By message Only commits that include a...

I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:

I used two lab days to read the The framework field guide - Fundamentals, the first of a three part series...

Just like Ruby Gems tag their version releases to the corresponding Git commit, it can be helpful to track production...

...Normalize characters in Ruby". Specs (for nerds) Here are some specs that describe the behavior of #to_sort_atoms: describe String do describe '#to_sort_atoms' do it 'should return...

Large Rails projects tend to define multiple custom ways to format Dates or DateTimes. This often leads to duplicated format...

makandra dev

Field error steps Spreewald's The...

...field should have an error and The...

...field should have the error...

...steps now...

unpoly.com

Version 3.7.0 broke some things in complex forms. Sorry for that. Concurrent user input is hard. 3.7.1 This change fixes...

There seems to be a nasty bug in Chrome 56 when testing with Selenium and Capybara: Slashes are not written...

JavaScript objects can have getter and setter functions that are called when a property is read from or written to...

The gemspec for gems allows to add metadata to your gem, some of which have a special meaning and are...

apidock.com

Note: ActiveRecord::Base#becomes has a lot of quirks and inconsistent behavior. You probably want to use ActiveType.cast instead. ActiveRecord models have with a method becomes(klass) which you can...

Ctrl + Alt + S > search "rubocop on save" Under "Inspections", check the highlighted box on rubocop -a Caveat: This adds a...