1
想知道Ramaze是否有像Sinatra這樣的鉤子。有人知道嗎?謝謝!Ramaze有像Sinatra之前/之後的鉤子嗎?
想知道Ramaze是否有像Sinatra這樣的鉤子。有人知道嗎?謝謝!Ramaze有像Sinatra之前/之後的鉤子嗎?
他們的documentation告訴你它確實如此。例如:
before(:index, :other) do
puts 'Executed before specific actions only.'
end
after(:index, :other) do
puts 'Executed after specific actions only.'
end
啊!非常好,非常感謝你! – rebnoob 2013-04-23 21:36:43