This commit is contained in:
Priit Tark 2015-05-14 11:02:26 +03:00
parent 14675f5bb7
commit ab6f59c09e
8 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,11 @@
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