Are u using same ruby script for ipad, ipad mini, and ipod touch?
it looks like an issue specific to ipod touch.
Yeah it's the same code.
just to add some thing, i've upgraded all my apple devices (iPad, iPad mini, iPhone, iPod Touch) to iOS 9.1 and have the same problem,
iPad, iPad mini, iPhone the Camera API is working perfectly, but not on iPod Touch.