No route matches [GET] "/galleries/39/3.jpg"
Try running rake routes for more information on available routes.
rake routes