{"id":1855,"date":"2016-04-15T23:54:31","date_gmt":"2016-04-15T14:54:31","guid":{"rendered":"https:\/\/ecpplus.net\/weblog\/?p=1855"},"modified":"2020-06-15T14:49:59","modified_gmt":"2020-06-15T05:49:59","slug":"haml%e3%81%a7textarearails","status":"publish","type":"post","link":"https:\/\/ecpplus.net\/weblog\/haml%e3%81%a7textarearails\/","title":{"rendered":"Haml\u3067Textarea(Rails)"},"content":{"rendered":"<p>Rails + Haml \u3067 textarea \u3092\u51fa\u529b\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001textarea \u5185\u306b\u8868\u793a\u3057\u3088\u3046\u3068\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u307e\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<p><code>find_and_preserve<\/code> \u3068\u3044\u3046\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3001\u4e2d\u8eab\u306e\u30a4\u30f3\u30c7\u30f3\u30c8\u306f\u4fdd\u6301\u3055\u308c\u308b\u3088\u3046\u3060\u3002<\/p>\n<pre><code class=\"language-ruby line-numbers\">= find_and_preserve(f.text_area)\n<\/code><\/pre>\n<p>Simple Form \u3092\u4f7f\u3063\u3066\u308b\u5834\u5408\u3082\u3001\u540c\u69d8\u306b\u3044\u3051\u308b\u3002<\/p>\n<pre><code class=\"language-ruby line-numbers\">= find_and_preserve(f.input :comment, as: :text)\n<\/code><\/pre>\n<p>\u53c2\u8003URL: <a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/haml.info\/docs\/yardoc\/file.FAQ.html#q-preserve\">How do I stop Haml from indenting the contents of my pre and textarea tags?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rails + Haml \u3067 textarea \u3092\u51fa\u529b\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001textarea \u5185\u306b\u8868\u793a\u3057\u3088\u3046\u3068\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u307e\u3067\u30a4\u30f3\u30c7\u30f3\u30c8\u3055\u308c\u3066\u3057\u307e\u3046\u3002 find_and_preserve \u3068\u3044\u3046\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3001\u4e2d\u8eab\u306e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2517,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[10],"class_list":["post-1855","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development","tag-rails"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/comments?post=1855"}],"version-history":[{"count":2,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1855\/revisions"}],"predecessor-version":[{"id":2518,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/posts\/1855\/revisions\/2518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media\/2517"}],"wp:attachment":[{"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/media?parent=1855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/categories?post=1855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ecpplus.net\/weblog\/wp-json\/wp\/v2\/tags?post=1855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}