Method: Spider::HTML#before

Defined in:
lib/spiderfw/controller/formats/html.rb

#before(action = '', *arguments) ⇒ Object

before do

Spider.logger.debug('HTML before')
#@response.headers['Content-Type'] = 'text/html'

begin
    run_chain(:before)
# rescue NotFound
#     render('errors/404')
rescue => exc
    top
    print_backtrace(exc)
    bottom
    raise exc
end

end



24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/spiderfw/controller/formats/html.rb', line 24

def before(action='', *arguments)
    Spider.logger.debug("HTML BEFORE")
    @response.register(:js, [])
    begin
        super
    rescue => exc
        top
        print_backtrace(exc)
        bottom
        raise exc
    end
end