Sinatra 关于 before 的问题

menghuanwd · August 05, 2014 · Last by eryu replied at November 04, 2014 · 7029 hits

是不是 sinatra 没要这样的写法:

before :except => "/index" do
  do_somethings
end

我看了,rails,padrino 都有这样的功能, 请问,我用 rails 的话,自己实现起来该怎么写

You need to Sign in before reply, if you don't have an account, please Sign up first.