Hi, Camping 1.5.180 Ruby 1.8.6 It looks like Camping is choking on the ''rows'' attribute for input tags: input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3) That will fail with: Markaby::InvalidXhtmlError no attribute `rows'' on input elements: c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:143:in `tag!'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:140:in `each'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:140:in `tag!'' (eval):92:in `tag!'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:217:in `html_tag'' (eval):3:in `input'' C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:118:in `index'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `instance_eval'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `capture'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:155:in `tag!'' (eval):92:in `tag!'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:217:in `html_tag'' (eval):3:in `form'' C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:108:in `index'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `instance_eval'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `capture'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:155:in `tag!'' (eval):92:in `tag!'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:211:in `html_tag'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/cssproxy.rb:43:in `call'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/cssproxy.rb:43:in `method_missing'' C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:105:in `index'' (eval):11:in `send'' (eval):11:in `method_missing'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `instance_eval'' c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb:123:in `capture'' (eval):11:in `method_missing'' C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:27:in `get'' (eval):27:in `send'' (eval):27:in `service'' c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/session.rb:11 2:in `service'' (eval):46:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/reloader.rb:1 17:in `run'' c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/webrick.rb:45 :in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/bin/camping:244 c:/ruby/bin/camping:16:in `load'' c:/ruby/bin/camping:16 I''ll try using the Markaby objects directly in the meantime. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
If you want a textarea why not do this instead: textarea :name => ''cuid'', :rows => 3, :cols => 10 Paul On Tue, Nov 06, 2007 at 10:42:42AM -0600, Berger, Daniel wrote:> Hi, > > Camping 1.5.180 > Ruby 1.8.6 > > It looks like Camping is choking on the ''rows'' attribute for input tags: > > input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3)>
If you want a textarea use the following: textarea :name => ''cdid'', :cols => 20, :rows => 10 Paul
Daniel, I believe you want to create a textarea tag, not an input tag. Then you should be able to give it a rows attribute. Josh On Nov 6, 2007, at 11:42 AM, Berger, Daniel wrote:> Hi, > > Camping 1.5.180 > Ruby 1.8.6 > > It looks like Camping is choking on the ''rows'' attribute for input > tags: > > input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3) > > That will fail with: > > Markaby::InvalidXhtmlError no attribute `rows'' on input elements: > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 143:in > `tag!'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 140:in > `each'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 140:in > `tag!'' > (eval):92:in `tag!'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 217:in > `html_tag'' > (eval):3:in `input'' > C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:118:in > `index'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `instance_eval'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `capture'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 155:in > `tag!'' > (eval):92:in `tag!'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 217:in > `html_tag'' > (eval):3:in `form'' > C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:108:in > `index'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `instance_eval'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `capture'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 155:in > `tag!'' > (eval):92:in `tag!'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 211:in > `html_tag'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/cssproxy.rb: > 43:in > `call'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/cssproxy.rb: > 43:in > `method_missing'' > C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:105:in > `index'' > (eval):11:in `send'' > (eval):11:in `method_missing'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `instance_eval'' > c:/ruby/lib/ruby/gems/1.8/gems/markaby-0.5/lib/markaby/builder.rb: > 123:in > `capture'' > (eval):11:in `method_missing'' > C:/Documents and Settings/djberge/workspace/cluri/cluri.rb:27:in `get'' > (eval):27:in `send'' > (eval):27:in `service'' > c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/ > session.rb:11 > 2:in `service'' > (eval):46:in `run'' > c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/ > reloader.rb:1 > 17:in `run'' > c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/lib/camping/ > webrick.rb:45 > :in `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'' > c:/ruby/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:95:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `each'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:92:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:23:in `start'' > c:/ruby/lib/ruby/1.8/webrick/server.rb:82:in `start'' > c:/ruby/lib/ruby/gems/1.8/gems/camping-1.5.180/bin/camping:244 > c:/ruby/bin/camping:16:in `load'' > c:/ruby/bin/camping:16 > > I''ll try using the Markaby objects directly in the meantime. > > Regards, > > Dan > > > This communication is the property of Qwest and may contain > confidential or > privileged information. Unauthorized use of this communication is > strictly > prohibited and may be unlawful. If you have received this > communication > in error, please immediately notify the sender by reply e-mail and > destroy > all copies of the communication and any attachments. > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list
Hi Daniel, Markaby throws an exception on malformed html entities to ensure valid HTML. The <INPUT /> tag doesn''t accept that "rows" attribute because it is not set in the standard (or am I wrong?). I don''t remember where but I think that it is possible to disable those checks if you want but I thinkt that you''re looking for the <TEXTAREA> tag. -- Cheers, zimbatm
> -----Original Message----- > From: camping-list-bounces at rubyforge.org > [mailto:camping-list-bounces at rubyforge.org] On Behalf Of Paul Thompson > Sent: Tuesday, November 06, 2007 9:58 AM > To: camping-list at rubyforge.org > Subject: Re: textarea fails on rows attribute > > If you want a textarea use the following: > textarea :name => ''cdid'', :cols => 20, :rows => 10Ah, that works, thanks. Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.