Adventures in Play 2.0 with Scala, Salat, and Casbah

How to get play-salat and play-cashbah working in the Play 2.0 Scala web framework

Scala? It's object-oriented. It's functional. It's complex. It's fun.
Scala has anonymous functions, type inference, list comprehensions, lazy initialization, excellent pattern matching, case classes, delimited continuations, higher-order types, and complexity that exceeds 10.

What is that stuff after the mapping binder? The apply and unapply functions of the Post model are curried with the form mapping. Also check out the views.html.helper package in the Play 2.0 API.

Controller: controllers/Posts.scala
View: views/posts.scala.html

Go introspection


rails-debate github repo

I just made my rails debates site open-source and pushed it to a github repository.

What is rails-debate? What if I hate arguing and avoid conflict?

User-driven debate site built with Ruby on Rails and jQuery. Users can create and reply to arguments and join sides. Easily deployed on Heroku after resolving gem dependencies.

Required gems

  • 'rails', '3.0.3' 
  • 'clearance', '0.9.1' 
  • "will_paginate", "~> 3.0.pre2" 
  • 'acts-as-taggable-on'