public Method

Route.append_query_string(path, hash, query_keys=nil)

Generate the query string with any extra keys in the hash and append it to the given path, returning the new path.

Source Code

# File action_controller/routing/route.rb, line 132
def append_query_string(path, hash, query_keys=nil)
  return nil unless path
  query_keys ||= extra_keys(hash)
  "#{path}#{build_query_string(hash, query_keys)}"
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.