Ruby comes with a class BigDecimal which you can use for arbitrary precision arithmetic. You should use BigDecimal instead of...
...and a scale of 2: Assigned value Stored value 100 100 1000 999.99 -1000 -999.99 1.34 1.34 1.345 1.35 -1.34 -1.34 -1.345 -1.35 These changes are performed inside MySQL. Note...
You set a flash message and it shows up as it should. However, it is displayed again the next time...
Airbrake (formerly Hoptoad) already ignores certain errors like InvalidAuthenticityToken by default (see Airbrake::Configuration::IGNORE_DEFAULT).\ To ignore additional classes...
Sass now comes with user-defined functions, keyword arguments, list manipulation. Haml and Sass are now two separate gems.
User Stories should describe what a user wants the system to do. Purely technical tasks should usually be implemented as...
Awesome presentation for the new HTML5 features we will get to play with. This presentation should probably be viewed in...
We can now plug into every facet of the Rails jQuery UJS adapter, binding to custom events, and even customizing...
If you save a non-standard object (not a String or Fixnum, etc) like the AwesomeClass from your application in...
If you want to have a new log file every day automatically, but avoid using logrotate, the CustomLog directive is...
You most likely have a form element inside another form element. Don't do that. Ever. Firefox and Chrome will...
You can use CSS attribute selectors in your step definitions like this: Then /^the page should have a meta description...
Partials always define a local variable with the same name as themselves. E.g. when you are in _recent_users.html.erb, a local...
This is a bug in Rails 2.3.11 which will be fixed in a future maintenance release. Until then you can...
A capybara driver that uses WebKit via QtWebKit.
Our new scope-based authorization gem for Ruby on Rails has been released. This might one day replace Aegis as...
Documentation for the horrible RDoc syntax.
To display a list of your current Git remotes and their endpoints, you can say git remote -v
If you want to convert a README.rdoc file to HTML, say this from a shell: rdoc README.rdoc
Ruby gem to check whether a given bic/account-no-combination can possibly be valid for a German bank. Can also resolve German...
If you are using RVM on a Mac and cannot enter 8+ bit characters on an IRB or Rails console...
Reading a URL via GET: curl http://example.com/ Defining any HTTP method (like POST or PUT): curl http://example.com/users/1...
User.active.to_sql Rails 2 Use either the Edge Rider or fake_arel gem to get #to_sql backported...
The Basic Authentication header encodes username and password. Effectively, it's just Base64 plus a "Basic" prefix.