Generators in RubyAMF
So, after a little more discussion about generators we figured that it’d be better for folks if they were in the plugin. I’ve removed the separate google code project (you only get 10 per login yo!)
I backed off on a ClassMapping generator I was going to write to re-write the config file with ClassMappings for each ActiveRecord. That’s now going to be a helper script that will write ClassMappings to the console for you to copy and paste and modify as needed. Non destructive, simple, and helpful.
One other generator will be a “Standard RubyAMF Scaffold” generator, which will be something like `script/generate scaffold <model name>`, but will assume that you’re only using RubyAMF and configure the generated controller accordingly.
One more generator will be the “RESTful Scaffold + RubyAMF” generator. That’s basically copied straight from the Rails 2.0 scaffold generator, but adds RubyAMF lines to the controller.
Generator scripts won’t intrude into your RubyAMF app, but they should help get your RubyAMF project up and running a little faster.


