hassox (owner)

Revisions

gist: 189790 Download_button fork
public
Public Clone URL: git://gist.github.com/189790.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class MyApp < Pancake::Stacks::Short
  roots << Pancake.get_root(__FILE__)
  
  provides :html, :xml, :json
  
  get "/foo", :_name => :foo do
    render :foo
  end
  
  get "/bar" do
    "in bar"
  end
  
end