app/controllers/data_search_controller.rb
# TODO: the format of @attribute_options is plain stupid. Simplify and change
# the view.
the format of @attribute_options is plain stupid. Simplify and change
the view.
the format of @attribute_options is plain stupid . Simplify and change the view .
def prepare_attribute_options
    @attribute_options = TraitBank.predicates.map do |array|
      (id, uri, name) = array
      [ truncate(name, length: 30), uri, { 'data-known_uri_id' => id } ]
    end
  end
def prepare_attribute_options @attribute_options = TraitBank . predicates . map do | array | ( id , uri , name ) = array [ truncate ( name , length : 30 ) , uri , { 'data-known_uri_id' => id } ] end end
TODO: the format of @attribute_options is plain stupid.
TODO : the format of @attribute_options is plain stupid .
# TODO: attributes within clades (only) # TODO: this is sloppy, refactor.