Add xml formatting view render.
This commit is contained in:
parent
2a4537b653
commit
ff0b0c59a9
1 changed files with 2 additions and 1 deletions
|
@ -17,11 +17,12 @@ class LinksController < ApplicationController
|
||||||
def show
|
def show
|
||||||
@link = Link.get_and_count(params[:id])
|
@link = Link.get_and_count(params[:id])
|
||||||
|
|
||||||
#update link count
|
#if it's not released, need to error
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to @link.url }
|
format.html { redirect_to @link.url }
|
||||||
format.json { render :json => @link }
|
format.json { render :json => @link }
|
||||||
|
format.xml { render :xml => @link }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue