vue app for image list. even tests. but wip
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user