Metal_grid_fs is a project mainly written in Ruby, it's free.
Serve files from GridFS using Rails metal.
The metal file catches routes for /images/grid_image/[path_to_grid_fs_file].
It also handles resizing using the following pattern:
/images/gridimage/resize_100x100[path_to_grid_fs_file]