Sha256: 26f0f9fb9a4d076c28ab702d8e499d3f00b9c1eadddad10a075cdd5efcabfdce
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: controller.rb 301 2005-03-16 13:24:25Z gmosx $ require 'nitro/controller' COUNTRIES = %w{ Greece USA England Germany Italy Canada France Japan Australia Holland } class AjaxController < N::Controller def hit puts "-----------------------------> hit #{request['val']}" end # ann :ajax => true, :params => :word def get_word word = request['word'] word = COUNTRIES.find { |c| c =~ /^#{word}/ } || '-' @out << word end # ajax :get_word, :params => :word end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.13.0 | examples/ajax/controller.rb |
nitro-0.14.0 | examples/ajax/controller.rb |
nitro-0.15.0 | examples/ajax/controller.rb |