From: Peter Woodsky Date: 2008-02-20T08:34:56+09:00 Subject: Re: Newbie eRuby site design question Justin Collins wrote: > Peter Woodsky wrote: >> //in config// >>
>> How do I define the output from the select so I can use it in my page? >> In the above example I get errors that banner, title, message, image are >> not defined. >> >> Any help is appreciated. >> >> Thanks!! >> > > Try using ERuby.import("config.rb") at the top of your page to parse and > run the config file first. > > -Justin Hi Justin Thanks for the response. I already use "require" which does the job for importing and setting most of the vars. It however does not work with the data from the db. Regards -- Posted via http://www.ruby-forum.com/.