Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added new default argument to model property section

  • Loading branch information...
commit ea91d7dcf96034fd7d592370c657246be3b1617b 1 parent 9925793
@larzconwell larzconwell authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 README.md
View
6 README.md
@@ -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](https://github.com/mde/geddy/wiki/Models) 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.
Please sign in to comment.
Something went wrong with that request. Please try again.