Browse files


# 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

  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 48d4a2d commit 164f6be880ab43f604f9d91b7ff9c94fb5841c62
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/story.rb
@@ -4,7 +4,7 @@ class Story < ActiveRecord::Base
fields do fields do
title :string title :string
body :text body :markdown # or :textile
tasks_count :integer, :default => 0, :null => false tasks_count :integer, :default => 0, :null => false
timestamps timestamps
end end

0 comments on commit 164f6be

Please sign in to comment.