You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/item_banks/index.json.jbuilder

9 lines
275 B

5 years ago
json.items @items.each do |item|
json.partial! "item_banks/item", locals: {item: item}
5 years ago
json.update_time item.updated_at&.strftime("%Y-%m-%d %H:%M")
json.author do
json.login item.user&.login
json.name item.user&.full_name
end
end
json.items_count @items_count