Rails "Icon" 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.

+6
ruby-on-rails badge achievements
source share
4 answers

You can also try gem achievements: https://github.com/mrb/achievements

This is based on Redis, so you need to get started first. Basically, you define a set of achievement contexts (pages viewed, messages sent, etc.) along with several levels, if necessary. Then you accordingly increase your value on certain events, and then you can check if the achievement is achieved.

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

+7
source share
+1
source share

I think this is less of a framework, but a matter of design. If you know how to build it in an object-oriented way, you end up knowing how to create it in Rails too.

If you are new to Rails, check out the Rails Guide under Active Recording Associations and try to identify the patterns and associations of your skip / reach system.

In addition: No, I do not know any ready-made gem / plugin / tutorial that will help you create such a system.

0
source share

There is also Gioco that I have not tried yet: http://joaomdmoura.imtqy.com/gioco/

0
source share

All Articles