BBCode for ruby and Rails