{"author_url":"https://blog.hatena.ne.jp/fvknk97034/","categories":["Ruby on Rails"],"title":"RSpec + Shrine \u3067 updated_at \u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u304c\u3053\u3051\u3066\u5bfe\u5fdc\u3057\u305f\u8a71","image_url":null,"url":"https://fvknk97034.hatenablog.com/entry/2024/06/23/140142","provider_name":"Hatena Blog","blog_url":"https://fvknk97034.hatenablog.com/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffvknk97034.hatenablog.com%2Fentry%2F2024%2F06%2F23%2F140142\" title=\"RSpec + Shrine \u3067 updated_at \u3092\u4f7f\u3063\u305f\u30c6\u30b9\u30c8\u304c\u3053\u3051\u3066\u5bfe\u5fdc\u3057\u305f\u8a71 - ~fvknk97034/bk\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","blog_title":"~fvknk97034/bk","height":"190","description":"\u306f\u3058\u3081\u306b RSpec + Shrine \u306e\u74b0\u5883\u306e\u30c6\u30b9\u30c8\u3067 updated_at \u304c\u3046\u307e\u304f\u8a2d\u5b9a\u3067\u304d\u306a\u3044\u4e8b\u8c61\u3092\u8abf\u67fb\u30fb\u89e3\u6d88\u3057\u305f\u306e\u3067\u5099\u5fd8\u3068\u3057\u3066\u307e\u3068\u3081\u3066\u304a\u304d\u307e\u3059\u3002 \u8d77\u3053\u3063\u305f\u554f\u984c \u554f\u984c\u304c\u306a\u304b\u3063\u305f\u72b6\u614b \u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e2\u30c7\u30eb\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002 \u30e2\u30c7\u30eb\uff1a class Article < ApplicationRecord end \u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc class ArticlesController < ApplicationController def index @articles = Article.all.order(:updated_at) end end \u3053\u306e\u30e2\u30c7\u30eb\u30fb\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u306b\u5bfe\u3057\u3066\u3001\u4ee5\u4e0b\u2026","author_name":"fvknk97034","version":"1.0","type":"rich","published":"2024-06-23 14:01:42"}