dimanche 26 avril 2015

How to make level.missed_days = habit.missed_days? [Gist Included]

Despite checking the missed_days box for :level 1 in the :habit _form, the console showed missed_days: 0 for Habit.find(1) yet missed_days: 1 for Level.find(1).

How can we get it so that how ever many :missed_days there are in :level will also be in :habit?

enter image description here

Here is the gist of it: http://ift.tt/1PISTF0




Aucun commentaire:

Enregistrer un commentaire