Module: Cheat::Controllers
- Defined in:
- lib/cheat/responder.rb,
lib/cheat/site.rb
Overview
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
Defined Under Namespace
Modules: Responder Classes: APIAll, APIRecent, APIShow, Add, Browse, Diff, Edit, Feed, History, Index, Show, Write