server.rb
# removes params from route and
# parameterizes them
removes params from route and
parameterizes them
removes params from route and parameterizes them
def remove_params(route)
    route, args = route.split('?')
    @params = Hash.new
    return route unless args
    args.split('&').each do |var|
      key, value = var.split('=')
      @params[key.to_sym] = value
    end
    puts @params
    route
  end
def remove_params ( route ) route , args = route . split ( '?' ) @params = Hash . new return route unless args args . split ( '&' ) . each do | var | key , value = var . split ( '=' ) @params [ key . to_sym ] = value end puts @params route end
removes params from route and
parameterizes them
removes params from route and parameterizes them
route
<not_specific>