Created
February 5, 2010 06:31
-
-
Save arunthampi/295572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'friendly' | |
Friendly.configure :adapter => "mysql", | |
:host => "localhost", | |
:user => "root", | |
:password => "", | |
:database => "friendly_development" | |
class BlogPost | |
include Friendly::Document | |
attribute :author, String | |
attribute :title, String | |
attribute :body, String | |
end | |
BlogPost.create_tables! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment