1

Ramaze 没有在这里公开继承的索引方法/操作是否有特殊原因?

require 'ramaze'

module Foo
    def index
        "Index page"
    end
end

class MainController < Ramaze::Controller
    include Foo
end

Ramaze.start

$ curl localhost:7000/
No action found at: "/"
4

0 回答 0