{"version":"1.0","width":"100%","height":"190","description":"\u8aad\u307f\u8fbc\u307f\u9806\u756a\u306b\u3088\u3063\u3066\u5909\u308f\u308b\u3084\u3064\u3002\u3068\u3044\u3046\u3053\u3068\u3067 \u306a\u308b\u3079\u304f\u4f7f\u308f\u306a\u3044\u307b\u3046\u304c\u3044\u3044 \u3051\u3069\u52d5\u4f5c\u3060\u3051 \u74b0\u5883 rails (5.0.2) \u52d5\u4f5c\u6982\u8981 \u901a\u5e38\u306eview\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e yield \u306e \u8a18\u8ff0\u306e\u524d\u306b content_for \u3092 \u542b\u3080partial\u3092 render \u3059\u308c\u3070\u51fa\u3066\u304f\u308b\u3002 \u9006\u306byield \u306e \u8a18\u8ff0\u306e\u3042\u3068\u306b content_for \u3092\u66f8\u3044\u3066\u3082\u51fa\u3066\u3053\u306a\u3044\u3002 \u305f\u3060\u3057\u3001layout\u306f\u4f4d\u7f6e\u95a2\u4fc2\u7121\u304f\u53cd\u5fdc\u3059\u308b\u3002 \u4f8b app/views/layouts/application.html.erb \u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b <!DOCTYPE html> <html> <head> <title>SampleApp</t\u2026","blog_title":"\u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69","title":"Rails\u306econtent_for\u306f\u5225\u306epartial\u306b\u8a18\u8ff0\u3057\u305f\u3082\u306e\u3067\u3082\u52d5\u304f\u304c\u3001\u9806\u756a\u3084\u5834\u6240\u306b\u3088\u3063\u3066\u6319\u52d5\u304c\u5909\u308f\u308b","provider_name":"Hatena Blog","categories":["Rails"],"author_name":"shinkufencer","blog_url":"https://shinkufencer.hateblo.jp/","type":"rich","published":"2019-12-20 00:00:00","url":"https://shinkufencer.hateblo.jp/entry/2019/12/20/000000","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/shinkufencer/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F12%2F20%2F000000\" title=\"Rails\u306econtent_for\u306f\u5225\u306epartial\u306b\u8a18\u8ff0\u3057\u305f\u3082\u306e\u3067\u3082\u52d5\u304f\u304c\u3001\u9806\u756a\u3084\u5834\u6240\u306b\u3088\u3063\u3066\u6319\u52d5\u304c\u5909\u308f\u308b - \u30b3\u30fc\u30c9\u65e5\u9032\u6708\u6b69\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}