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...
| Chrome | CTRL+Shift+J | | Firefox / Firebug | CTRL+Shift+L |
Using text-transform: uppercase - especially on form labels - can cause you serious headaches in Selenium tests. Sometimes the web driver...
Since we are migrating from our homegrown mixins.sass and helpers.sass to Compass, here is a list of all the mixins...
Did you know you can color your line-throughs or underline, or make them wavy like spell-checkers do?
Awesome slide deck about taking liberties with design requirements in order to keep the CSS simple.
Preface: Normally, you would not need this in integrations tests (probably that's why it is so hard to achieve...
When two elements with display: inline-block are sitting next to each other, whitespace between becomes a space character.
A list of FontAwesome icons in the form of copyable Unicode characters or HTML entities. You might prefer to use...
CSS3 comes with new unit rem. It works like em but it is always relative to the element instead of...
An opinion how to implement BEM. I don't agree with all of Nico's choices, but I applaud his...
A short browsing revealed that this may be a current firefox issue Current workaround: use another browser
In Rails 5 you can say: ApplicationController.render( :template => 'users/index', :layout => 'my_layout', :assigns => { users: @users } ) If a Request Environment is...
Box shadows are awesome. Unfortunately they are also very costly to render. You will rarely notice the rendering time on...
For Capybara, use this step: Then /^"([^"]*)" should be a disabled option for "([^"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| with_scope(selector...
Use the click method on the DOM element: let link = document.querySelector('a') link.click()
Using CSS sprites for background images is a technique for optimizing page load time by combining smaller images into a...
Similar to closing an opened browser window, spreewald now supports the I switch to the new browser tab step.
The ipad onscreen keyboard changes position:fixed style to position:static that misplaces those elements and you'll have problems...
Next time you have to do more than trivial CSS changes on a project, you probably want to have live...
Set the hash to a dummy hash which doesn't hit any id at your page, for example: window.location.hash = "_";
This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...