Cucumber_rails' old-school web-steps have been deprecated for a while, urging developers to write high-level step definitions...
There is no reason to leave trailing whitespace characters in your project's files, so don't add any.
TL;DR Avoid before(:context) (formerly before(:all)), use before(:example) (formerly before(:each)) instead. If you do use before...
simple_format ignores Rails' XSS protection. Even when called with an unsafe string, HTML characters will not be escaped or...
Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...
When you work in the MySQL console and you want to see which database is used, type: SELECT database();
We frequently use the handy Paperclip Gem to manage file attachments. If you need to move the files from local...
Under certain circumstances gettext_i18n_rails will hit a near-infinite loop. This occured in Rails 2.3.5 with Haml 3.0.18...
If you have an html_safe string, you won't be able to call gsub with a block and match...
If (for some reason that you don't want to ask yourself) you need to know all classes that define...
If you want to update some records with boolean fields in a migration, always remember to set your values with...
In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...
If you get errors from your development WEBrick that contain unicode salad, you are probably requesting the page via SSL...
A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...
This article describes how to reset MySQL's or MariaDB's root password on your workstation. It's meant for...
Every now and then, Java is subject to security issues where code can break out of Java's sandbox and...
When committing, you should always check the diff of your changes so you don't include any leftovers or irrelevant/bad...
Sometimes you need to look at the filter chain in specs. You can do it like that on Rails 2...
So your Cucumber feature sometimes dies with this exception: Modal Dialog Present (Selenium::WebDriver::Error::UnhandledAlertError) As a seasoned Selenium...
In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...
Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons
So you got this error, even though your Gemfile bundles mysql2: !!! Missing the mysql2 gem. Add it to your Gemfile...
A number of issues concerning Sass/SCSS autocompletion and syntax highlighting were submitted as a feedback for RubyMine 4.5. Web development...
assignable_values now lets you define a secondary default that is only used if the primary default value is not...