You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...
There was a bug in Skype that could cause messages to be sent to incorrect recipients (anyone, not only people...
In Rails 3.1+, instead of defining a separate up and down method you can define a single method change:
Also works on Gnome 2 Much prettier than Skype notifications Better visibility
In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...
CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...
Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...
Recent rails security updates have shown that people make incorrect assumptions about the possible contents of the params hash.
Last week saw a security issue with rails 2.3 that required a fix. While an official patch was provided, the...
Why string sorting sucks in vanilla Ruby Ruby's sort method doesn't work as expected with special characters (like...
Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...
Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...
How to get a backtrace from a running Ruby process: Ruby 2.6 # First, find out the PID of your Ruby...
This card needs to be updated for Rails 3+. Since there is no --debugger flag you need to run:
You won't usually have to do this. It's OK to route all formats to a controller, and let...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
This only applies to RSpec below version 1.3.2. The issue has been fixed in RSpec 1.3.2, and most likely RSpec...
This card shows you how to format a card's content using Markdown. We use the Commonmarker interpreter, so here...
Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...
Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...
Don't you just hate to write Cucumber path helpers to be able to say this?
The attached patch lets you find a record by a string or number in any column: User.find_by_anything('carla...
Copy the attached file to config/initializers/indent_string.rb and you can say "foo".indent(4) # " foo" Note you will find many simpler...