ruby - Why is this value getting added to the end of a my variable? -


why value <redacted> added end of variable two when running #get_digest?

here's code looks like:

require 'digest' require 'uri'  class <redacted>      def request_to_string(args = {})     encoded_search_query = uri.encode_www_form(args[:<redacted>])     "#{<redacted>}#{<redacted>}"   end    <redacted> end 

every time run #<redacted> value of two changes shouldn't be. seems going wrong?

you're modifying string instance in args[:request_string] directly.

change instead:

str = "#{args[:request_string]}" 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -