Skip to content

Instantly share code, notes, and snippets.

@tcrayford
Created May 19, 2010 00:09
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 tcrayford/405746 to your computer and use it in GitHub Desktop.
Save tcrayford/405746 to your computer and use it in GitHub Desktop.
(defmodel User
:username
:password)
(defmodel Comment
:text
[:belongs-to User])
(defmodel Post
:text
:title
[:belongs-to User]
[:has-many Comment])
(scaffold-app blog-app
:models [Comment Post User]
:index (list-view Post))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment