Browse files

Added new default argument to model property section

  • Loading branch information...
1 parent 9925793 commit ea91d7dcf96034fd7d592370c657246be3b1617b @larzconwell larzconwell committed Jul 19, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0
@@ -157,6 +157,12 @@ Each of these items include a name and an optional type, if there's no type give
to string. The list of supported types are listed in the [model]( documentation.
If no id property is given then a default id property will be created with the type of string.
+You can also use custom default properties:
+geddy resource user name:default admin:boolean
+The above example will use the property `name`(string) to display the items in the views instead of the default ID property, this way when generating scaffolds, it will look better out of the box.
### Routes
Routes are created in a similar fashion to Merb or Rails.

0 comments on commit ea91d7d

Please sign in to comment.