metacodes#index map in asset_path
This commit is contained in:
parent
e40f6ededc
commit
0dbb37eaa4
1 changed files with 3 additions and 1 deletions
|
@ -5,8 +5,10 @@ class MetacodesController < ApplicationController
|
||||||
# GET /metacodes
|
# GET /metacodes
|
||||||
# GET /metacodes.json
|
# GET /metacodes.json
|
||||||
def index
|
def index
|
||||||
|
|
||||||
@metacodes = Metacode.order("name").all
|
@metacodes = Metacode.order("name").all
|
||||||
|
@metacodes.map do |metacode|
|
||||||
|
metacode.icon = asset_path(metacode.icon)
|
||||||
|
end
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
|
|
Loading…
Reference in a new issue