What you copy may not be what you see in the browser. Here is an online tool to determine the...
Note: This technique is confusing and slows down your test suite. Copy the attached code to features/support. This gets you...
Usually, the logrotate service takes care of renaming log files each night or so to avoid logs becoming huge. That...
TL;DR: Variables not declared using var are stored outside the current scope, most likely in the global scope (which...
When you use ab to do some performance benchmarking, you might run into output like this: Complete requests: 200
Find out in this short guide, how to horizontally center a absolute positioned container with CSS. Note: We have a...
Rails has generic error messages you can define in your locale .yml files. You may override those application-wide error...
yaml4r is a juxtaposition of yaml documents and their Ruby couterpart. Thus, it does a great job as YAML-doc...
We all struggle with pricing. Here is some interesting information that helps you with your pricing decisions.
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...
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...
Great presentation about writing Javascript like you write everything else: Well-structured and tested. JavaScript is no longer a toy...
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...
Rails flashes (FlashHash) track a list of used keys, which is not respected when comparing flash hashes.
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
Rails understands a :limit options when you create columns in a migration. Its meaning depends on the column type, and...