Module: Spec::Rails::Example::RoutingHelpers::ParamsFromQueryString
- Included in:
- Spec::Rails::Example::RoutingHelpers, RouteFor
- Defined in:
- lib/spec/rails/example/routing_helpers.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#params_from_querystring(querystring) ⇒ Object
:nodoc:
7 8 9 10 11 12 13 14 |
# File 'lib/spec/rails/example/routing_helpers.rb', line 7 def params_from_querystring(querystring) # :nodoc: params = {} querystring.split('&').each do |piece| key, value = piece.split('=') params[key.to_sym] = value end params end |