Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...
The attached post shows some alternative ways to define Strings in Ruby using the percent notation. This can be useful...
Spreewald now has a spreewald binary that lists all available steps, optionally filtering them. Example: $> spreewald # All Spreewald steps
The debugger gem does not seem to be properly working on Ruby 2. Use byebug instead! Byebug is a simple...
Be careful to name any file @imported by SASS with a leading underscore. SASS files not beginning with an underscore...
The attached RSpec matcher allows for comfortably testing delegation. Examples describe Post do it { should delegate(:name).to(:author).with...
The material design project for Angular is a complementary effort to the Polymer project's paper elements collection. Our goal...
The Paper elements are a set of UI elements that implement the material design system.
The adjust-hue function of Sass allows you to change a color's hue, but only relative to its current...
Skype has been updated to 4.3 on Linux. This fixes group chat issues with non-linux clients.
When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...
Automatically builds gems from Bower packages (currently 1700 gems available). Packaged Javascript files are then automatically available in your asset...
SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...
If your requests blow up in Ruby or CURL, the server you're connecting to might only support requests with...
This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...
In whenever you can schedule Ruby code directly like so: every 1.day, :at => '4:30 am' do runner "MyModel.task_to...
So you're getting an error message like the following, although your Gemfile lists shoulda-matchers and it has always...
If you have some file or directory that should trigger a Spring reboot, tell Spring e.g. in config/spring.rb: Spring.watch 'file.rb...
The most obvious way to use spring is to call it explicitly: spring rails console spring rake db:migrate...
See screenshot here. This is great news because network throttling is very painful in Linux. The features are already in...
Aruba is an extension to Cucumber that helps integration-testing command line tools. When your tests involve a Rails test...
When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...
An all-in-approach to fix the problem of pending AJAX requests dying in the browser when the server ends...
"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...