Sha256: 964fc2e1a1a185ae21b0c4d8667221038bf47dcd50740e9b75f04d76a8227422
Contents?: true
Size: 474 Bytes
Versions: 18
Compression:
Stored size: 474 Bytes
Contents
module BivouacSample::Controllers class Observe < R '/observe' WORDLIST = %w{Bivouac is a full stack, open-source web framework in Ruby for writing real world applications with joy and less code than most frameworks spend doing XML sit-ups } def get render :observe end def post @search = input.request matcher = Regexp.new( @search ) @results = WORDLIST.find_all{ |w| w =~ matcher } render :_observe_result end end end
Version data entries
18 entries across 18 versions & 1 rubygems