source:
ruby/tags/release-0.5.0/app/controllers/terminology_controller.rb
Last change on this file was 164, checked in by , 15 years ago | |
---|---|
File size: 542 bytes |
Line | |
---|---|
1 | class 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 |
14 | end |
Note:
See TracBrowser
for help on using the repository browser.