Spreewald's patiently repeats the given block again and again until it either passes or times out.
Ever wondered about the difference between def and define_method? Turns out there are three implicit contexts in Ruby. def...
The way Rational#to_s works on Ruby has changed from Ruby 1.9 on. Here is how to get the...
When a controller action redirects to an external URL (like http://somehost.com/some/path) you will find that this is hard...
Unfortunately, Capybara does not offer a switch to disable cookies in your test browser. However, you can work around that...
To set a cookie in your test browser for cucumber tests, you need to know which driver you are using...
The following code doesn't work like expected: page.find(css_selector).find(other_css_selector) The second .find will search...
Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy...
Great look at the tradeoffs between progressive enhancement with jQuery or similiar, vs. client-side views.
In Ruby, the meaning of protected and private is different from other languages like Java. (They don't hide methods...
Access the Method object Dead simple: Get the method object and ask for its owner: "foo".method(:upcase) # => #
Establishing a TCP connection to a SSL secured remote service is not possible using telnet or nc. Though, you can...
Chart.js seems to be a good alternative to Google's Chart API and other commercial chart drawing libraries.
Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.
For example if you use rvm and get this message: ERROR: Loading command: install (LoadError) no such file to load...
Smashing Magazine lists some handy tricks for print style sheets, all with CSS: Expand External Links For Print
CSSmatic lets you play around with four rather complex CSS stylings and gives you CSS or SASS code to use...
The linked site lists a wealth of CSS hacks that let you apply styles to just that one browser. You...
Since there are more and more touch-capable devices out there, as a web-developer it becomes more and more...
Consider this class: class Foo private def test puts "Hello" end end While you can say create a block to...
Do not pass times to date attributes. Always convert times to dates when your application uses time zones. Background
Ruby 1.8 (supplied by Rails' ActiveSupport) >> BigDecimal.new("0.1").floor.class => BigDecimal Ruby 1.9 (supplied by Ruby 1.9 itself) >> BigDecimal.new("0.1").floor.class...
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...
Guide how to make fixes in other people's GitHub repositories. It's basically "Open Source Development 101".