# Define a subclass of Ramaze::Controller holding your defaults for all
# controllers

class Controller < Ramaze::Controller
  layout :default
  helper :xhtml
  engine :Etanni
end

# Here go your requires for subclasses of Controller:
require __DIR__('main')

# Define a subclass of Ramaze::Controller holding your defaults for all
# controllers

module ApplicationName
  class Controller < Ramaze::Controller
    layout :default
    helper :xhtml
    engine :Etanni
    provide( :json, :type => 'application/json' ) { |action, value| value.to_json }
  end
end

# Here go your requires for subclasses of Controller:
require __DIR__( 'main' )

Add json provide. Put Controller under an application module.
Add json provide.  Put Controller under an application module.
