internetee-registry/app/controllers/registrant/whois_controller.rb
Priit Tark ab6f59c09e TEMP
2015-05-14 14:54:56 +03:00

11 lines
324 B
Ruby

class Registrant::WhoisController < RegistrantController
def index
authorize! :view, Registrant::Whois
if params[:domain_name].present?
whois_url = "#{ENV['restful_whois_url']}/v1/#{params[:domain_name]}"
binding.pry
page = Nokogiri::HTML(open(whois_url))
@results = 'ee'
end
end
end