From ff0b0c59a97cfc497328457121d27a8b569f5423 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 3 May 2012 02:33:46 -0400 Subject: [PATCH] Add xml formatting view render. --- app/controllers/links_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/links_controller.rb b/app/controllers/links_controller.rb index fb67438..bbb9195 100644 --- a/app/controllers/links_controller.rb +++ b/app/controllers/links_controller.rb @@ -17,11 +17,12 @@ class LinksController < ApplicationController def show @link = Link.get_and_count(params[:id]) - #update link count + #if it's not released, need to error respond_to do |format| format.html { redirect_to @link.url } format.json { render :json => @link } + format.xml { render :xml => @link } end end end