From my 3 second research it looks like this will work in rails 4 but not in rails 3 currently