public
Description: The code from my @media talk
Homepage: http://www.yehudakatz.com
Clone URL: git://github.com/wycats/at-media.git
wycats (author)
Tue Sep 16 03:55:18 -0700 2008
at-media / simple.rb
100644 19 lines (15 sloc) 0.317 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$KCODE = 'UTF8'
require "merb-assets"
 
Merb.flat! do |url|
  url.match('/').to(:controller => 'simple', :action =>'index')
end
 
class Simple < Merb::Controller
  provides :json
  self._template_root = Dir.pwd
  
  def index
    render :index
  end
  
  def list
    display(:array => %w(One Two Three Four))
  end
end