Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...
In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...
When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...
SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...
Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...
Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.
MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...
If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...
If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...
We now have a gem that supports our form model approach.
Alternatives to drop-down menus to consider in form design.
Ask before leaving an unsaved CKEditor Vanilla JavaScript way, but removes any other onbeforeunload handlers: $(function(){ document.body.onbeforeunload = function() { for(editorName...
Warning: Because of (unclear) rounding issues and missing decimal places (see examples below), do NOT use this when dealing with...
Alternative approach to form models.
Great slide deck about various forms of refactorings.
tl;dr: Using has_many associations with a :through option can lead to lost or duplicate records. You should avoid...
We've since created ActiveType which has a restricted subset of Virtus' features. It might be enough for your needs...
Say you have a User with a Carrierwave attribute #avatar: class User < ActiveRecord::Base mount_uploader :avatar, AvatarUploader end
Motion is quickly becoming one of the most important emerging techniques in building a quality user experience on the web...
Advice for address forms that work with address structures from multiple countries.
Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...
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...
Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...