Skip to content

Instantly share code, notes, and snippets.

@caius
Created August 13, 2009 15:53
Show Gist options
  • Save caius/167254 to your computer and use it in GitHub Desktop.
Save caius/167254 to your computer and use it in GitHub Desktop.
irb(main):004:0> @b.goto "file:///Users/caius/Desktop/input.html"
=> "file:/Users/caius/Desktop/input.html"
irb(main):005:0> @b.button(:index, 1).html
=> "<input type=\"image\" src=\"avatar.png\"/>\n"
irb(main):006:0> @b.image(:index, 1).html
Celerity::Exception::UnknownObjectException: Unable to locate Image, using :index and 1
from /Volumes/SSD/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/celerity-0.0.6.16/lib/celerity/element.rb:163:in `assert_exists'
from /Volumes/SSD/opt/local/share/java/jruby/lib/ruby/gems/1.8/gems/celerity-0.0.6.16/lib/celerity/element.rb:211:in `to_xml'
from (irb):7
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<form action="input_submit" method="get" accept-charset="utf-8">
<input type="image" src="avatar.png" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment