aaand I used a Rails 2 method - changing to Rails 3 xD