mendicant-university/liskov — pull request #12 by sandal (2012-03-17 22:38:08+00:00)
Title: Discussion archive

We've added basic support for filtering archived discussions and did a bunch of refactoring in the process of doing so.

We made some small changes to the way categories are labeled (pluralized them), so if anyone has run the seeds we created, you'll need to either manually pluralize your discussion categories or run `Discussion.destroy_all` on the console then run rake db:seed again.

Also, we didn't add archived discussions to the seed data yet, because the seed data is messy enough as it is, and will be obsolete once we actually have an archive button in place. To simulate some archived discussions, it's easy to run `Discussion.all.sample.update_attribute(:archived, true)` a few times.

But if you want to be lazy and not actually *run* this code, you can just watch this short video: http://www.youtube.com/watch?v=xCpLvmG_2dc (watch at 720p for best results)