Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails "Badge" type plugin / tutorial?

Does anyone know if there is a Rails gem/plugin/tutorial that shows how to create a Badge/Achievement system similar to what stackoverflow uses.

Thanks.

like image 316
Nick Faraday Avatar asked Jun 17 '09 23:06

Nick Faraday


2 Answers

You might also want to try the achievements gem: https://github.com/mrb/achievements

It's based on Redis, so you'll need to get that working first. Basically, you define a bunch of achievement contexts (pages viewed, messages sent, etc.) along with multiple levels if necessary. Then, you increment your value appropriately upon certain events, and you can then check if the achievement has been reached.

This link also has a relatively detailed explanation of the thinking behind a badge/achievement system: RoR Achievement System - Polymorphic Association & Design Issues

like image 103
Jack Hoge Avatar answered Oct 18 '22 17:10

Jack Hoge


check out https://github.com/paulca/paths_of_glory

like image 45
Roger Avatar answered Oct 18 '22 16:10

Roger