2013-04-23 57 views

回答

2

他们的documentation告诉你它确实如此。例如:

before(:index, :other) do 
    puts 'Executed before specific actions only.' 
end 

after(:index, :other) do 
    puts 'Executed after specific actions only.' 
end 
+0

啊!非常好,非常感谢你! – rebnoob 2013-04-23 21:36:43