templates in rails

I recommend that you read some basic book about Rails, e.g. Agile Development With Rails 2nd ed. from Pragmatic Programmers or Build Your Own Ruby on Rails Applications that is right now available for free from SitePoint.
Alternatively, you can run script/generate scaffold YourModelName and look into your app/views folder for a hint about what Rails templates are.