vue app for image list. even tests. but wip

This commit is contained in:
2022-12-17 21:22:31 +02:00
parent fc2c390fd1
commit 1aa092c433
9 changed files with 98 additions and 22 deletions

View File

@ -4,6 +4,13 @@ module Merged
def index
@images = Image.all
@image_data = @images.collect{|i|
data = i.attributes.dup
data[:url] = view_context.asset_path(i.asset_name)
data[:created_at] = i.created_at.to_date
data[:aspect_ratio] = i.aspect_ratio.join("/")
data
}
end
def create