| 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