Skip to content

Instantly share code, notes, and snippets.

@mdeiters
Created April 29, 2010 10:14
Show Gist options
  • Save mdeiters/383411 to your computer and use it in GitHub Desktop.
Save mdeiters/383411 to your computer and use it in GitHub Desktop.
def index
@games = Game.all
respond_to do |format|
format.html #so we can still respond to requests from browsers
format.xml do
render :xml => @games.to_xml
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment