Ramaze不暴露mixins

时间:2013-04-26 21:16:31

标签: ruby ramaze

有没有特殊原因让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: "/"

0 个答案:

没有答案