Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ローカルホストでは大丈夫です...しかし、herokuでは、「about」に255文字を超える文字を追加することはできません。
herokuエラー
We're sorry, but something went wrong.
_form.html.erb
<%= f.label :about %> <%= f.text_area :about %>
show.html.erb
<p><%= @release.about %></p>
ありがとう!
データベースでとして定義されていstringますか? 255 文字より長くするには、text. その理由は、Heroku が Postgres を使用しているためです。Postgres はstring255 文字を超えることはできませんが、sqlite では許可されます。
string
text