Hobo Cookbook

View Source

Manual

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

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