Module Cheat::Controllers
In: lib/cheat/responder.rb
lib/cheat/site.rb

class Something < R ‘route‘

  include Responder

  def get
   ... important code ...

    respond_to do |wants|
      wants.html { render :something }
      wants.text { "Just some text." }
      wants.yaml { "Something neat!".to_yaml }
      wants.xml  { "Also, XML.".to_xml }
    end
  end

end

Classes and Modules

Module Cheat::Controllers::Responder
Class Cheat::Controllers::APIAll
Class Cheat::Controllers::APIRecent
Class Cheat::Controllers::APIShow
Class Cheat::Controllers::Add
Class Cheat::Controllers::Browse
Class Cheat::Controllers::Diff
Class Cheat::Controllers::Edit
Class Cheat::Controllers::Feed
Class Cheat::Controllers::History
Class Cheat::Controllers::Index
Class Cheat::Controllers::Show
Class Cheat::Controllers::Write

[Validate]