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