Sha256: 56b70ff950908bc6237495975388c70f9886a46625e102988fc49fb880d74b44
Contents?: true
Size: 320 Bytes
Versions: 5
Compression:
Stored size: 320 Bytes
Contents
require 'base64' class ImageController < ApplicationController def face face = Face.find_first(["user_id = ?", @params['id']]) render_text("", 404) and return unless face @headers['Content-type'] = face.content_type @headers['Last-Modified'] = face.updated_at render_text face.picture end end
Version data entries
5 entries across 5 versions & 1 rubygems