Created
November 7, 2009 17:19
-
-
Save lucascaton/228787 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Posts < Application | |
provides :xml, :json | |
def index | |
@posts = Post.all | |
display @posts | |
end | |
end | |
#Este controller responde solicitações em html, xml, e json :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment