Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 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
Something went wrong with that request. Please try again.