gorp 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- data/gorp.gemspec +1 -1
- data/lib/gorp.rb +2 -2
- data/lib/version.rb +1 -1
- metadata +1 -1
data/gorp.gemspec
CHANGED
data/lib/gorp.rb
CHANGED
@@ -445,8 +445,8 @@ def post path, form
|
|
445
445
|
# if page isn't one big form, find matching button on page instead
|
446
446
|
require 'cgi'
|
447
447
|
query = form.map{|key,val| /[&?]#{key}=#{CGI.escape(val.to_s)}(&|$)/}
|
448
|
-
xform = body.search('form').find do |element|
|
449
|
-
query.all? {|kv| element
|
448
|
+
xform = body.search('//form').find do |element|
|
449
|
+
query.all? {|kv| element.attribute('action').to_s =~ kv}
|
450
450
|
end
|
451
451
|
end
|
452
452
|
|
data/lib/version.rb
CHANGED