SammyLin / redactor-rails

This repo is deprecated. Please check out official gem for Redactor 2. https://github.com/Redactor2/redactor2_rails
MIT License
389 stars 253 forks source link

How to use different uploaders #50

Open agis opened 11 years ago

agis commented 11 years ago

I want to store uploaded images in different locations, depending on the view.

This could be done if there's a way to use different model & uploader for each editor instance. Is there a way to do this?

For example, in my app I may have posts & products. These are 2 different type of resources, so each one has their own controller/views/forms etc. I want the images uploaded for a product to be stored in assets/products and those for a post in assets/posts.

Any ideas?