Skip to content

Commit

Permalink
markdown-formatting-of-stories
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
bryanlarsen committed Feb 19, 2010
1 parent b5ca37c commit 56e113b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/story.rb
Expand Up @@ -4,7 +4,7 @@ class Story < ActiveRecord::Base

fields do
title :string
body :text
body :markdown # or :textile
timestamps
end

Expand Down

0 comments on commit 56e113b

Please sign in to comment.