How downloading image in rails

Take a look at send_data method. Use this method within a controller action to send the data for your image to the client browser. You will then connect your action to a regular hyperlink within your view in the normal way.