KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If I have a block of code like this: def show @post = Post.find(params[:id]) respond_to do |format| format.html # show.html.erb format.xml { render :xml => @post } end end How do I add something like format.json Any tips, pointers, ideas gladly welcomed...
Tags (comma-separated)
Save Edits
Cancel