Your development machine is usually on a very good network connection. To test how your application behaves on a slow...
By default, Rails' validates_uniqueness_of does not consider "username" and "USERNAME" to be a collision. If you use MySQL...
Put the attached file to config/initalizers to ignore some fields for rejecting nested records (e.g. hidden input fields).
Batman is an alternative Javascript MVC with a similar flavor as AngularJS, but a lot less features and geared towards...
If you are trying to inspect timings in JavaScript, you can use console.time and console.timeEnd which will write to your...
When you call a method on an object, Ruby looks for the implementation of that method. It looks in the...
Article about implementing authentication (current_user) and authorization (access rights) in AngularJS. Has an surprising amount of practical and understandable...
When you use a belongs_to or has_many macro you might be surprised that the methods that it generates...
Development environment setup Rails Composer Basically a comprehensive Rails Template. Prepares your development environment and lets you select web server...
To print a colored full-width bar on the bash, use this bash script expression: echo -e '\033[37;44m...
rake stats # => LOC per controllers, models, helpers; code ratios, and more rake notes # => collects TODO, FIXME and...
Just found out about a great feature in Rails that seems to be around since Rails 2. Start a console...
Browsers usually cache favicons. If you update the favicon of your web site and want all visitors to see the...
Eduardo Russo was tired of complex favicon creation and created his own favicon generator. It's really easy and allows...
String#indent is not a standard Ruby method. When you use it, be sure to know where this method comes...
"I click on ..." step fixed Errors added to ToleranceForSeleniumSyncIssues::RETRY_ERRORS Capybara::ElementNotFound Selenium::WebDriver::Error::ElementNotVisibleError Selenium::WebDriver::Error...
You might have a table without a primary key set in MySQL. You can fix this by adding a primary...
Using git checkout - you can switch back to the branch you previously worked on. (master) $ git checkout foobar
Wondering how a specific method on an object is exactly named? You can use Enumerable#grep to detect it in...
Spreewald includes a few useful steps for debugging a Capybara session. Then show me the page # => Opens the page in...
For reasons that completely escape me, MySQL 5.x limits UTF-8 strings to U+FFFF and smaller.
Usually, Cucumber feature files live in features/. When you group them in sub directories, make sure to add -r features...
Like in any language, a FLOAT will eventually corrupt data due to rounding errors. Please use DECIMAL, which has well...
Tests are about 100% control over UI interaction and your test scenario. Randomness makes writing tests hard. You will also...