Skip to content

Yoomee/v-yoomee-moderation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple flagging system for moderating content on a site. The gem provides a helper method to generate a flag link that users (logged-in or not) can click to report inappropriate content. Once clicked, a lightbox will appear for them to enter a brief message.

yoomee_flag_link(@asset, :text => "Flag this photo as offensive", :class => "flag-photo")

An administrator is notified by email for each new flagging and all the flaggings can be viewed by admins in the moderation area (‘/moderation/home’ or moderation_path).

Add the gem to your Gemfile:

gem "yoomee-moderation"

Run the install rake task, which will add migrations to db/migrate, assets to /public and yoomee_moderation.yml to /config:

rake yoomee_moderation:install

Run migrations:

rake db:migrate

Edit config/yoomee_moderation.yml to set where moderation emails get sent to etc.

A dummy Rails 3 app exists in test/dummy is used to run tests. From the root directory of the gem:

rake test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors