{"published":"2015-04-12 02:34:05","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikm.hatenablog.jp%2Fentry%2F2015%2F04%2F12%2F023405\" title=\"polymorphic_path\u3092\u4f7f\u3063\u3066\u5b9a\u578b\u306e\u30ea\u30f3\u30af\u3092\u624b\u8efd\u306b\u4f5c\u308b - There&#39;s an echo in my head\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/a2ikm/","width":"100%","description":"\u7ba1\u7406\u753b\u9762\u306bTwitter Bootstrap\u3092\u4f7f\u3063\u3066\u30dc\u30bf\u30f3\u3063\u307d\u3044\u30ea\u30f3\u30af\u3092\u4f5c\u3063\u3066\u3044\u308b\u3068\u3001 link_to t(:new), new_user_path, class: \"btn btn-success\" \u307f\u305f\u3044\u306a\u30b3\u30fc\u30c9\u304c\u30d3\u30e5\u30fc\u306b\u3042\u3075\u308c\u3066\u304d\u3066\u3064\u3089\u3044\u3002 \u306a\u306e\u3067\u3001 new_link_to User \u3068\u3057\u305f\u3089\u540c\u3058\u30ea\u30f3\u30af\u3092\u751f\u6210\u3059\u308b\u3088\u3046\u306a\u30d8\u30eb\u30d1\u3092\u4f5c\u308b*1\u3002 module LinksHelper def new_link_to(model, &block) model = model.class unless model.is_a?(Class) options = polymorphic_path(mode\u2026","provider_url":"https://hatena.blog","author_name":"a2ikm","title":"polymorphic_path\u3092\u4f7f\u3063\u3066\u5b9a\u578b\u306e\u30ea\u30f3\u30af\u3092\u624b\u8efd\u306b\u4f5c\u308b","version":"1.0","url":"https://ikm.hatenablog.jp/entry/2015/04/12/023405","height":"190","provider_name":"Hatena Blog","categories":["rails"],"type":"rich","blog_url":"https://ikm.hatenablog.jp/","image_url":null,"blog_title":"There's an echo in my head"}