简体   繁体   English

Ruby on Rails中的用户相册

[英]User photos album in Ruby on Rails

I am building an app where user can upload pictures. 我正在构建一个用户可以上传图片的应用程序。 For now only one picture at a time will do. 目前,一次只能拍摄一张照片。 I have searched around the Web and here at Stack Overflow, but don't really seem to find what I am looking for or at least I don't know what I am looking for if it exists here at the site. 我已经在Web上和Stack Overflow上进行了搜索,但是似乎并没有真正找到我想要的东西,或者至少我不知道自己想要的东西是否存在于网站上。

I have tried implementing paperclip and allow users to upload pictures through that and not deleting the old picture when uploading a new one. 我已经尝试实现回形针,并允许用户通过它上传图片,而在上传新图片时不删除旧图片。 But I don't really know where to go from here to display all the pictures that a user has uploaded. 但是我真的不知道从哪里可以显示用户上传的所有图片。 How do I do this the best way? 我如何做到最好? Should I continue using paperclip or is there an even more suitable gem for my needs? 我应该继续使用回形针还是有更适合我的宝石?

I prefer carrierwave , over Paperclip, because it has more options and easy to setup. 与Paperclip相比,我更喜欢carrierwave ,因为它具有更多选项并且易于设置。 However without knowing what is your ultimate goal for your photo app, it's a little hard to tell what to do next. 但是,在不知道照片应用程序的最终目标是什么的情况下,很难告诉下一步该做什么。

If you have a roadmap or feature list, that would be helpful for us to help you with your next move. 如果您有路线图或功能列表,这将有助于我们帮助您进行下一步。

But, if it is a simple photo app, might as well try to build it on top of an existing CMS like Refinery ; 但是,如果它是一个简单的照片应用程序,则不妨尝试将其构建在现有的CMS(如Refinery)上 you could easily build a plugin to upload images with Refinery. 您可以轻松构建一个插件来使用精炼厂上传图片。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM