Skip to content

Instantly share code, notes, and snippets.

@jimeh
Created December 23, 2009 09:18
Show Gist options
  • Save jimeh/262428 to your computer and use it in GitHub Desktop.
Save jimeh/262428 to your computer and use it in GitHub Desktop.
require "rubygems"
require "friendly"
require "models/user"
Friendly.configure(
:adapter => "mysql",
:host => "localhost",
:user => "root",
:password => "boot",
:database => "friendlyplay"
)
class User
include Friendly::Document
attribute :name, String
attribute :age, Integer
indexes :name
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment