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@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list