Sha256: 6cee4951caca25085738e0bd2b2988c8f3b77ef9d76b3ec0cd01c3bf24ab148f
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
MyApp.namespace "/" do get do # render "index.str" at app/views/index.str render :str, :index end get "hi/:name" do # `hi` is helper at app/helpers.rb hi(params[:name] || "joe") end # /admin/* namespace "admin" do before { halt 403, "Secret zone" } get "/secret" do "foobar" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hisyo-0.2.0 | data/generators/project/app/controllers.rb |