# Dump the details on a node given in params[:id]
def show
- node = Node.find(params[:id])
-
- response.last_modified = node.timestamp
+ @node = Node.find(params[:id])
- if node.visible
- @nodes = [node]
+ response.last_modified = @node.timestamp
+ if @node.visible
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
else
head :gone
end
@nodes = Node.find(ids)
# Render the result
- respond_to do |format|
- format.xml
- end
+ render :formats => [:xml]
end
end
end