Update base.rb

uri as local variable