def get_url(route_name, id = nil, engine = Rails.application)
      return route_name.call if id.nil?
      return route_name.call(id) unless id.nil?
    end
def get_url(route_name, id = nil, engine = Rails.application)
      return route_name.call if id.nil?
      return route_name.call(id) unless id.nil?
    end
Translate route name to url dynamically