LoginSignup
0
0

More than 3 years have passed since last update.

Ruby学び直し -フォーム送信時のエラー-

Posted at

フォームを作成し送信しようとしたら、

no implicit conversion of nil into String

と言われてた、nilからstringへの暗黙の了解がない…?

https://teratail.com/questions/171144
上の記事を参考に…

.to_sをテキストを用いる変数につけたら無事使えました。

.to_sはString型であることを明示して取り出すメソッド。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0