Technology Insights

What Exactly Does the Scaffold_Resource Generator give you?

The regular scaffold generator (e.g. ruby script/generate scaffold model controller) requires you to create your model and controller first. The scaffold_resource generator, on the other hand, generates the (RESTful) model and controller for you. For example: ruby script/generate scaffold_resource Caregiver first_name:string last_name:string In Rails 2.0, use resource instead: ruby script/generate resource Caregiver first_name:string last_name:string Here’s…