source: ruby/trunk/terminology/app/controllers/terminology_controller.rb@ 164

Last change on this file since 164 was 164, checked in by KOBAYASHI, Shinji, 15 years ago

simple terminology commit

File size: 542 bytes
Line 
1class TerminologyController < ApplicationController
2 def show
3 @terminology = Terminology.find(:first,:conditions => {
4 :name => params[:name],
5 :lang => params[:lang],
6 :code => params[:code]})
7 if @terminology.nil?
8 render :text => '404 not found.', :status => 404
9 else
10 render :xml => @terminology.to_xml(
11 :skip_types => true, :only => [:rubric])
12 end
13 end
14end
Note: See TracBrowser for help on using the repository browser.