[Radiant-docs] Radiant tutorial

John W. Long ng at johnwlong.com
Wed Jun 21 23:04:03 CDT 2006


Pablo Ambrosio wrote:
> Sounds good. I'm reading something about it. By the way, sorry for my
> ignorance, I've just seen a post by John (
> http://www.ruby-forum.com/topic/68883#new) about a DB template he wrote, I
> really don't know how to use it, has somebody tried to use it?

If you look in the db/templates directory you will see three example 
database templates.

The easiest way to create your own is to tweak your database until you 
have it the way you want it, login to the admin interface, and go to 
/admin/export/ where it will dump the db to yaml. Then cut and paste the 
relevant parts into your own template.

Then when you setup a new db do this:

% db/setup.rb --template=path/to/mytemplate.yml

Does that make it any clearer? Perhaps I should write a tutorial on it. 
I would really love to see some other submissions for templates from the 
community.

--
John Long
http://wiseheartdesign.com



More information about the Radiant-docs mailing list