Идентификация пользователей
- 3 ответа
- 0 вопросов
5
Вклад в тег
Network: 192.168.0.0/16 11000000.10101000.00000000.00000000
Netmask: 255.255.0.0 11111111.11111111.00000000.00000000
Network: 192.168.1.0/30 11000000.10101000.00000001.00000000
Netmask: 255.255.255.252 11111111.11111111.11111111.11111100
Network: 192.169.0.0/16 11000000.10101001.00000000.00000000
Netmask: 255.255.0.0 11111111.11111111.00000000.00000000
match "/favicon.ico" => "tools#favicon"
match "/:url" => "main#article", as: :article, constraints: DoesntMatch.new(path:
class ToolsController < ApplicationController
def favicon
data = File.open("public/favicon_test.ico", "rb").read
send_data(data, :filename => "favicon.ico", :type => "image/png")
end
end