Created
August 13, 2009 15:53
-
-
Save caius/167254 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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