Using beginning_of_day or end_of_day on Date or DateTime objects in Rails 2.x applications will never...
If you get an error like this ... can’t find executable rails for rails-3.2.3 (Gem::Exception) ... one of several...
Though the W3C even gives it as an example, no browser actually supports this CSS: img:before { content: "something"; }
File upload with nice UI, progress bar and preview, allowing multiple files and supports drag & drop. Its default is built...
You can use this code: function scrollToLine($textarea, lineNumber) { var lineHeight = parseInt($textarea.css('line-height')); $textarea.scrollTop(lineNumber * lineHeight); }
All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
zClip is a lightweight jQuery "copy to clipboard" plugin built using the popular Zero Clipboard library. This plugin uses an...
An association defined with has_many :through will return the same record multiple times if multiple join models for the...
Make sure you call the methods in the following order and not vice versa: has_attached_file :image validates_attachment...
The default behavior of Calc is that when you paste cells from the clipboard, it overwrites whatever cells occupy the...
Geordi, our collection of command line tools, has been extended by another command deploy-to-production. This script encapsulates the...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
When talking to your MySQL server via a mysql shell, you can terminate queries by ; or \G -- the latter gives...
This is a demo of the "Tabby" Javascript jQuery plugin to use tabs in regular textareas to make them suitable...
Usually you don't need to, but when you want to see which queries your MySQL server currently needs to...
Capybara has a global option (Capybara.ignore_hidden_elements) that determines whether Capybara sees or ignores hidden elements.
After you configured your ODBC describe in Fix [RubyODBC]Cannot allocate SQLHENV when connecting to MSSQL 2005 with Ruby 1.8.7...
I followed this nice guide Connecting to MSSQL with Ruby on Ubuntu - lambie.org until I ran in the following errors...
When you do a script/dbconsole -p, your MySQL shell will already be using UTF-8. When you call it yourself...
When you are calling a method that may raise an exception that you don't care about, you might think...
Undeterministically I got a nil error on saving the object caused by the random order of hash elements of the...
Let's say you need to revert a migration that happened a while back. You'd create a new migration...
When your model is using a callback like before_save or before_validation to calculate an aggregated value from its...
will_paginate triggers a database query to determine the total number of entries (i.e. to let you display the number...