Sha256: d4100bdfc23bcb7b99dc0cec8ff6761c2b7e3ade35137c0e175462842430f4ab
Contents?: true
Size: 553 Bytes
Versions: 4
Compression:
Stored size: 553 Bytes
Contents
# encoding: UTF-8 require 'iqvoc/similar_terms' # XXX: should not be necessary!? class SimilarTermsController < ApplicationController def show authorize! :read, Iqvoc::Concept.base_class unless params[:terms] head 400 unless request.format.html? # non-GUI return end @terms = Iqvoc::InlineDataHelper.parse_inline_values(params[:terms]) lang = params[:lang] @results = Iqvoc::SimilarTerms.ranked(lang, *@terms) respond_to do |format| format.html format.ttl format.rdf end end end
Version data entries
4 entries across 4 versions & 1 rubygems