# Template : modify file to add code

**URL:** <https://www.ruby-forum.com/t/template-modify-file-to-add-code/167413>\
**Category:** Rails\
**Created:** [May 7, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/template-modify-file-to-add-code/167413 "2009-05-07T17:14:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![babiben](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e68b1a/32.png) [@babiben](https://www.ruby-forum.com/u/babiben)\
**Post date:** [May 7, 2009, 5:14pm UTC](https://www.ruby-forum.com/t/template-modify-file-to-add-code/167413/1 "2009-05-07T17:14:22Z")

</div>

Hello,

When using rails templates  
([http://github.com/jeremymcanally/rails-templates/tree/master](http://github.com/jeremymcanally/rails-templates/tree/master)), is it  
possible to complete a file and to add code in this file ?

For example, i create a model “home” and i would like to insert a  
“validates\_of” condition. How can i do that ?

thanks  
Bye
