Add xml formatting view render.

This commit is contained in:
Andrew Tomaka 2012-05-03 02:33:46 -04:00
parent 2a4537b653
commit ff0b0c59a9

View file

@ -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