From: Sean Chittenden Date: 2001-07-24T05:23:36+09:00 Subject: [ruby-talk:18380] Re: More newbie questions --LZFKeWUZP29EKQNE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey. > $ ruby > require "cgi" > cgi =3D CGI.new("html3") > cgi.out { cgi.p { cgi.rfc1123_date (Time.now) } } > (offline mode: enter name=3Dvalue pairs on standard input) > -:3: undefined method `rfc1123_date' for # (NameError) > from -:3:in `p' > from -:3 > from -:3:in `out' > from -:3 I'm not a user of the CGI module, but the reason is because rfc1123 isn't a function... wait, no... looks like it is. Ah! But=20 it's a class method. Try this instead: cgi.out {cgi.p { CGI.rfc1123_date(Time.now) } } See if that works. Also, check out mod_ruby (modruby.net) and=20 the mailing lists there. -sc --=20 Sean Chittenden --LZFKeWUZP29EKQNE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Comment: Sean Chittenden iEYEARECAAYFAjtch74ACgkQn09c7x7d+q0blgCfT4Ajih7hRZGuCklMtlF+19n/ SAkAoIYF6YkagYZL2AUdXCR0u9Bl+fUN =saZG -----END PGP SIGNATURE----- --LZFKeWUZP29EKQNE--