October 2009
0 posts
6 tags
An implementation of a jQuery plugin using BDD
On Web apps, sometimes we want to avoid unnecessary requests, one of those situations happens when there is a form that represents a record, and the values of this record haven’t changed. On these cases you would like the user to send an update request only when the values of the record’s form actually changed, this technique is called “dirty form”, and is a very common...
Oct 1st
September 2009
4 posts
3 tags
"Object is not missing !" + Amazon::S3
Today at the office, we had one of the weirdest Rails errors I have ever encountered rails-project/vendor/rails/activesupport/lib/active_support/dependencies.rb:417:in `load_missing_constant’: Object is not missing constant Photo! (ArgumentError) We looked up into the stack trace and we found the problem was being caused by this...
Sep 10th
4 tags
The jQuery DSL
For the last 4 months I’ve been using jQuery for Javascript development. To be honest, I didn’t got started before with jQuery because it didn’t seem too practical to me (no Class approach), but after looking carefully at the plugin model, it was truly a revelation of a good API for development. So I started to accommodate to the jQuery’s way of things, and one of the...
Sep 7th
3 tags
(ActiveRecord::Callbacks +...
Have you ever been in a situation where you have this strange bug, that takes you more time than expected to find out what (tha hell) isĀ  going on? That happened to us (me and my team) last Rails Rumble when we were trying to have some stuff done after the creation of an element that had some tags associated to it. The code looked something like the following: ## app/models/entry.rb class Entry...
Sep 1st