开发者

Approaches to adding attachments in rails3?

开发者 https://www.devze.com 2023-02-26 02:13 出处:网络
I\'m wondering what are some good solutions to adding attachments/files to records in rails3? I\'m talking about any kind of file, with user set upload limits.. Is this something paperclip can handle

I'm wondering what are some good solutions to adding attachments/files to records in rails3?

I'm talking about any kind of file, with user set upload limits.. Is this something paperclip can handle? If not are there any other/better/different solutions out there that people recommend I look into?

Or does anyone have any 开发者_开发问答pointers for how I might go about this from scratch?

Thanks!


You can use or paperclip or CarrierWave gems:

  • https://github.com/thoughtbot/paperclip
  • https://github.com/jnicklas/carrierwave

Usefull Ryan's screencasts:

  • http://railscasts.com/episodes/253-carrierwave-file-uploads
  • http://railscasts.com/episodes/134-paperclip

Both of them can handle a number of useful validations

0

精彩评论

暂无评论...
验证码 换一张
取 消