ip addresses: add ip address show page.
* Add IP address show page at /ip_addresses/1.2.3.4. * Add "Details", "Ban IP", "Ban User" options to the /ip_addresses listing.
This commit is contained in:
@@ -14,4 +14,10 @@ class IpAddressesController < ApplicationController
|
||||
|
||||
respond_with(@ip_addresses)
|
||||
end
|
||||
|
||||
def show
|
||||
@ip_address = IpAddress.new(ip_addr: params[:id])
|
||||
@ip_info = @ip_address.lookup.info
|
||||
respond_with(@ip_info)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user