{"categories":["Rails","javascript"],"width":"100%","blog_title":"\u3053\u3093\u304c\u308a\u3043","type":"rich","version":"1.0","image_url":null,"url":"https://kongaribug.hatenablog.com/entry/2019/02/03/232920","published":"2019-02-03 23:29:20","provider_url":"https://hatena.blog","author_name":"KongariBug","height":"190","blog_url":"https://kongaribug.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/KongariBug/","description":"\u74b0\u5883 Rails: 5.2.2 Ruby: 2.5.3 \u554f\u984c \u984c\u540d\u306e\u901a\u308a\u3002\u4eca\u56de\u3084\u308a\u305f\u304b\u3063\u305f\u3053\u3068\u306f\u300c\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u300d\u307f\u305f\u3044\u306a\u9078\u629e\u80a2\u3092\u5165\u308c\u308b\u306e\u3067\u7a7a\u767d\u306e\u9078\u629e\u80a2\u306f\u5fc5\u8981\u306a\u304b\u3063\u305f\u3002 \u7d50\u8ad6 \u305d\u3046\u3044\u3046\u3082\u306e\u3089\u3057\u3044\uff1f `select` form helpers with `required: true` generate a blank option even when one is already present \u00b7 Issue #31083 \u00b7 rails/rails \u00b7 GitHub \u306a\u306e\u3067\u7a7a\u767d\u306e\u9078\u629e\u80a2\u3092javascript\u3067\u6d88\u3059\u304b\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u7a7a\u767d\u306e\u9078\u629e\u80a2\u306b\u30c6\u30ad\u30b9\u30c8\u3092jquery\u3067\u633f\u5165\u3057\u305f\u3002 $('#f\u2026","title":"Rails: select\u30dc\u30c3\u30af\u30b9\u3067required: true\u306b\u3057\u305f\u3068\u304dinclude_blank: false\u304c\u304d\u304b\u306a\u3044","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkongaribug.hatenablog.com%2Fentry%2F2019%2F02%2F03%2F232920\" title=\"Rails: select\u30dc\u30c3\u30af\u30b9\u3067required: true\u306b\u3057\u305f\u3068\u304dinclude_blank: false\u304c\u304d\u304b\u306a\u3044 - \u3053\u3093\u304c\u308a\u3043\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog"}