I think that the CGI class is still in development, isn't it?
How can i add a "class" attribute to my elements? I want to use CSS in my scripts.
For example for a CGI.text_field.
Recommendation: don't use the CGI HTML generation. Use a templating
environment, such as Amrita or even the RDoc templating included with
Ruby.
-austin
···
On Tue, 22 Feb 2005 08:38:20 +0900, Javier Valencia <jvalencia@log01.org> wrote:
I think that the CGI class is still in development, isn't it?
How can i add a "class" attribute to my elements? I want to use CSS in
my scripts.
For example for a CGI.text_field.
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca
Austin Ziegler wrote:
I think that the CGI class is still in development, isn't it?
How can i add a "class" attribute to my elements? I want to use CSS in
my scripts.
For example for a CGI.text_field.
I believe you can pass a hash of attribute name/values to the method
Recommendation: don't use the CGI HTML generation. Use a templating
environment, such as Amrita or even the RDoc templating included with
Ruby.
Or consider using the XmlBuilder lib, which as an API somewhat similar to the CGI HTML stuff.
http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects.rdoc
James
···
On Tue, 22 Feb 2005 08:38:20 +0900, Javier Valencia <jvalencia@log01.org> wrote:
-austin
James Britt wrote:
Austin Ziegler wrote:
I think that the CGI class is still in development, isn't it?
How can i add a "class" attribute to my elements? I want to use CSS in
my scripts.
For example for a CGI.text_field.I believe you can pass a hash of attribute name/values to the method
Recommendation: don't use the CGI HTML generation. Use a templating
environment, such as Amrita or even the RDoc templating included with
Ruby.Or consider using the XmlBuilder lib, which as an API somewhat similar to the CGI HTML stuff.
http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects.rdoc
James
-austin
mmm but using other methods means that cgi forms will not use automatically cookies and such things
···
On Tue, 22 Feb 2005 08:38:20 +0900, Javier Valencia >> <jvalencia@log01.org> wrote:
Recommendation: don't use the CGI HTML generation. Use a templating
environment, such as Amrita or even the RDoc templating included with
Ruby.Or consider using the XmlBuilder lib, which as an API somewhat similar to the CGI HTML stuff.
http://onestepback.org/index.cgi/Tech/Ruby/BuilderObjects.rdoc
James
-austin
mmm but using other methods means that cgi forms will not use automatically cookies and such things
I've tried amrita, but it gives me lots of Security Errors, i've tried using RubySafeLefel 0 on mod_ruby configuration, but the problem still continues.
[Tue Feb 22 13:57:38 2005] [error] mod_ruby: error in ruby
[Tue Feb 22 13:57:38 2005] [error] mod_ruby: /usr/lib/ruby/site_ruby/1.8/amrita/vm.rb:54:in `instance_eval': Insecure operation - instance_eval (SecurityError)