Last updated: November 19, 2009
Generators
These are the manual pages for the Hobo generators. They do not provide any information beyond what is available on the help pages. For instance:
$ ruby script/generate hobo --help
Contents
- hobo — hooks Hobo into your app
- hobo_rapid — adds the Rapid library
- hobo_model — generates a Hobo::Model
- hobo_model_controller — model, controller and views
- hobo_model_resource — model, controller, views & tests
- hobo_front_controller — front page controller
- hobo_user_model — User model
- hobo_user_controller — User controller and views
- hobo_subsite — subsite system
- hobofield_model — generates a HoboFields based model
- hobo_migration — generates a migrations.
Comments
hobofield_model does not require the Hobo gem. If you are using the full Hobo system, hobo_model is probably more appropriate.
There is more low-level documentation for Hobo migrations available in the Hobo Fields: Migration Generator documentation.
The hobo executable runs the rails executable and then the following generators.
ruby script/generate hobo --add-gem --add-routes
ruby script/generate hobo_rapid --import-tags #{invite_only}
ruby script/generate hobo_user_model #{user_model} #{invite_only}
ruby script/generate hobo_user_controller #{user_model} #{invite_only}
ruby script/generate hobo_front_controller front --delete-index --add-routes #{invite_only}
The rake hobo:run_standard_generators task runs:
ruby script/generate hobo --add-routes && \
ruby script/generate hobo_rapid --import-tags && \
ruby script/generate hobo_user_model user && \
ruby script/generate hobo_user_controller user && \
ruby script/generate hobo_front_controller front --delete-index --add-routes