Skip to content

Instantly share code, notes, and snippets.

@jimeh
Created December 23, 2009 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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