Created
September 28, 2008 18:26
-
-
Save wycats/13488 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment