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...

In a nutshell: return statements inside blocks cause a method's return value to change. This is by design (and...

A print stylesheet is easy to create. Choose a font suited for paper, hide some elements, done. Unfortunately print stylesheets...

Every now and then, Java is subject to security issues where code can break out of Java's sandbox and...

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...

github.com

In Selenium features the server and client are running in separate processes. Therefore, when mocking time with a tool like...

makandra dev
twitter.github.com

Explanation of the "bootstrap 2" base CSS. Contains information about: Typography Code Tables Forms Buttons Icons

blog.jetbrains.com

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...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

Sometimes, you may want to open up a second database connection, to a read slave or another database. When doing...

For my Gem Session project Holly I ran the Ironman of drag'n'drop implementations: Dragging in nested lists

Makandra cards will auto-detect the language used for syntax highlighting. This auto-detection sometimes fails for short code snippets...

stackoverflow.com

When you use method_missing to have an object return something on a method call, always make sure you also...

Applications often show or hide elements based on viewport dimensions, or may have components that behave differently (like mobile vs...

makandracards.com

Updated the card with our current best practice (shared app code and specs via symlinks).

Sometimes you need to remove high Unicode characters from a string, so all characters have a code point between 0...

makandra dev
robots.thoughtbot.com

The Rails community has been abuzz with object-oriented programming, SOLID principles, laws, design patterns, and other principles, practices, and...

seejohncode.com

This sounds promising: The best part from the Rails side, is that you don’t have to change anything at...

If you're suffering from a huge de.yml or similiar file, cry no more. Rails lets you freely organize your...

In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...

The following code activates autoloading using ActiveSupport 3.x: require 'active_support' require 'active_support/dependencies' relative_load_paths = %w[app/controllers...