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...
Rails’ reputation as a relatively secure Web framework is well deserved. Out-of-the-box, there is protection against many...
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.
Sometimes you might want to limit the number of associated records in a has_many association, but cannot add a...
view_context.helper_method('args') Rails 2 ApplicationController.helpers.helper_method('args') Also see How to use helper methods inside a model...
The User-Agent HTTP header identifies the client and is sent by "regular" browsers, search engine crawlers, or other web...
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...
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...
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...