Question

Wondering if Ramaze has hooks like Sinatra. Does anyone know? Thanks!

Was it helpful?

Solution

Their documentation tells you that it does. For instance:

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

after(:index, :other) do
    puts 'Executed after specific actions only.'
end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top