I don't believe ruby 1.8.7 likes splitting a multiline statement up like this. Can you try splitting this up into multiple lines?