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

Using Redactor-rails asset models with Devise authentication gem #29

Closed jurikern closed 11 years ago

jurikern commented 11 years ago

"rails g redactor:install --devise" generate migration with attribute user_id for asset model (and foreign key, if needed) After, if attribute user_id available in asset(Picture or Document), only signed in users can upload files or can view only own uploaded files.

SammyLin commented 11 years ago

thanks @Semjonow for pull request