Skip to content

Commit

Permalink
changed Field#to_param so that if the configuration mode is :mechaniz…
Browse files Browse the repository at this point in the history
…e it doesn't escape the values. This is because mecahanize also escapes the values so they get escaped twice
  • Loading branch information
mattfawcett committed May 29, 2009
1 parent c3f067b commit 8d7944e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/webrat/core/elements/field.rb
Expand Up @@ -87,6 +87,8 @@ def to_param
parse_rails_request_params("#{name}=#{escaped_value}")
when :merb
::Merb::Parse.query("#{name}=#{escaped_value}")
when :mechanize
{ name => @value.to_s }
else
{ name => escaped_value }
end
Expand Down

0 comments on commit 8d7944e

Please sign in to comment.