RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Protecting you paperclip downloads

Comments

Hi very nice post. Do you know how to do this in carrierwave?

I think it works quite similar. In the mounted uploader you can set your store dir, for example:

def store_dir “/documents/#{document.id}/” end

And in your controller you can do the stuff like I did in my post. I did not tried it yet, but I think it works. I already tried carrierwave and it works good. There are a few bugs, but the gem gets from day to day better. In the last 2 month a big step was done by the developers..

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in