writing a web service in rails to upload an image
I am new to ruby on rails can you help me in writing a web service which uploads an image 开发者_如何学Pythonand stores in database.
No one's gonna just give you the code, but, in a way, someone has.
Paperclip is a Ruby gem that handles file uploads and attaches them to a model. That's the hardest part of what you're describing. The README doc on that page describes the installation process pretty well, and I imagine the rest you can handle yourself, with the Rails documentation at your side :)
精彩评论