Sha256: e07bf95f3a7194379b87cd4241c6fcc3311fa6aac8aab4fc30126fd484e35585

Contents?: true

Size: 372 Bytes

Versions: 2

Compression:

Stored size: 372 Bytes

Contents

# deploy new version to rubygems
# add logging
# respect RESTful routing /foo/:id is the only thing missing

if param is set to redirect_to, ki will redirect

class Redirector < Ki::Model
  def after_find
    @params['redirect_to'] = 'http://localhost:1337/'
  end
end>

how to read headers

class Headers < Ki::Model
  def after_find
    @result = @req.headers
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ki-0.4.12 TODO.md
ki-0.4.11 TODO.md