From 1804ca2bdb5821eda31f6d07f7c5236fce9ff974 Mon Sep 17 00:00:00 2001 From: Bryan Larsen Date: Fri, 19 Feb 2010 15:38:39 -0500 Subject: [PATCH] markdown-formatting-of-stories # Markdown / Textile formatting of stories We'll wrap up this section with a really easy one. Hobo renders model fields based on their type. You can add your own custom types and there's a bunch built-in, including textile and markdown formatted strings. Location the `fields do ... end` section in the Story model, and change SHOW_PATCH --- app/models/story.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/story.rb b/app/models/story.rb index 6b6cb02..cdca475 100644 --- a/app/models/story.rb +++ b/app/models/story.rb @@ -4,7 +4,7 @@ class Story < ActiveRecord::Base fields do title :string - body :text + body :markdown # or :textile timestamps end