From fcd866c05ebc13d29cc08354c0bd9e7564ba20b1 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Sun, 25 Oct 2015 16:50:07 +0800 Subject: [PATCH] add asset_path calls --- app/helpers/topics_helper.rb | 2 +- app/views/shared/_filterBox.html.erb | 2 +- db/schema.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/topics_helper.rb b/app/helpers/topics_helper.rb index 482a663c..79945b6f 100644 --- a/app/helpers/topics_helper.rb +++ b/app/helpers/topics_helper.rb @@ -10,7 +10,7 @@ module TopicsHelper topic['value'] = t.name topic['description'] = t.desc.truncate(70) # make this return matched results topic['type'] = t.metacode.name - topic['typeImageURL'] = t.metacode.icon + topic['typeImageURL'] = asset_path(t.metacode.icon) topic['permission'] = t.permission topic['mapCount'] = t.maps.count topic['synapseCount'] = t.synapses.count diff --git a/app/views/shared/_filterBox.html.erb b/app/views/shared/_filterBox.html.erb index 714b1378..9ea4926b 100644 --- a/app/views/shared/_filterBox.html.erb +++ b/app/views/shared/_filterBox.html.erb @@ -70,7 +70,7 @@ @metacodes.each_with_index do |metacode, index| @metacodelist += '
  • ' - @metacodelist += '' + metacode.name + '' + @metacodelist += '' + metacode.name + '' @metacodelist += '

    ' + metacode.name.downcase + '

  • ' end @synapses.each_with_index do |synapse, index| diff --git a/db/schema.rb b/db/schema.rb index 97bf204a..45fbcf67 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20151023143719) do +ActiveRecord::Schema.define(version: 20151025083043) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql"