Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...
Automagically makes XHR requests work cross-domain by tunneling all communications through an IFRAME on your page.
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...
Skype has been updated to 4.3 on Linux. This fixes group chat issues with non-linux clients.
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...
This card describes how to pass an array with multiple element to a JavaScript function, so that the first array...
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...
You need this awkward command: page.driver.browser.action.move_to(page.find(selector).native).perform Note that there are better ways for newer Capybaras...
"Keyword arguments" allow naming method arguments (optionally setting a default value). By using the double-splat operator, you can collect...
As you know, assignable_values does not invalidate a record even when an attribute value becomes unassignable. See this example...
Travis CI is a free continuous integration testing service. However, it is really fragile and will break more than it...
When you tell rbenv to install a Ruby it does not know about, you will get an error message.
RSpec 3.0 deprecates the :should way of writing specs for expecting things to happen. However, if you have tests you...
When you have a string containing umlauts which don't behave as expected (are not matched with a regexp, can...
Sometimes you're getting an ActiveSupport deprecation warning that you cannot or don't want to fix. In these cases...
Warnings like those below may originate from rspec or shoulda-matchers or other gems that have not updated yet to...