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