# Generate a fixture tempate

**URL:** <https://www.ruby-forum.com/t/generate-a-fixture-tempate/124655>\
**Category:** Rails\
**Created:** [December 31, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/generate-a-fixture-tempate/124655 "2007-12-31T17:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 31, 2007, 5:26pm UTC](https://www.ruby-forum.com/t/generate-a-fixture-tempate/124655/1 "2007-12-31T17:26:44Z")

</div>

Hi all,

I just coded a little rails plugin to generate the fixture template of  
a given model. Example:

> rake db:fixtures:template Model=Job  
> will return:  
> job:  
> id:  
> category\_id:  
> company:  
> description:  
> instructions:  
> language:  
> location:  
> status:  
> title:  
> url:

It will ease the bootstrapping of your fixture files. If you think it  
might help you, you can install this plugin with:

./script/plugin install  
svn://donegarden.com/repo\_public/plugins/fixture\_template/

–  
Donegarden: [http://blog.donegarden.com](http://blog.donegarden.com)
