Monkeybars generator

The Monkeybars generator is used to create new files for your project. It creates files with intelligent defaults such as the model and view to use in the controller and a declaration for the java class in the view.

Running the generator

Inside your generated project you will find a tasks directory that contains monkeybars.rake. The default Rakefile imports all the files in the tasks directory so the Monkeybars tasks are available without any additional work on your part. Running "rake -T" shows that there is only a single task provided by Monkeybars.
  rake generate  # ALL, CONTROLLER, VIEW, MODEL are valid options.
	  

Generate requires an option, the valid values for which are:

The generate option tells the generator what kind(s) of files to create in your project but you need to specify where you want your files to be created and what name to use. To do this you specify a target 'base' after the generate option in this form:

  rake generate MODEL="src/foo"
		
This would would generate src/foo/foo_model.rb". Most of the time you'll want to use the ALL option to generate all three files that are typically needed for a Monkeybars form. The important thing to remember with the generator is that you need to supply the relative path to where you want your files. The generator creates a src directory for you so you'll probably generate your files using:
  rake generate ALL="src/your_name"
		
This will have the effect of generating

Continue on to the next section, Monkeybars basic usage