我試圖找到一些解決方案,但我真的找不到與我在運行rails命令時出現的錯誤相關的任何內容:警告:常量:: Fixnum已棄用當生成新的模型
軌生成模型書名:字符串摘要:文本ISBN:字符串
/home/vmu/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:51: warning: constant ::Fixnum is deprecated
/home/vmu/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/xml_mini.rb:52: warning: constant ::Bignum is deprecated
/home/vmu/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/core_ext/numeric/conversions.rb:138: warning: constant ::Fixnum is deprecated
Running via Spring preloader in process 3579
Expected string default value for '--jbuilder'; got true (boolean)
invoke active_record
identical db/migrate/20170104114702_create_books.rb
identical app/models/book.rb
invoke test_unit
identical test/models/book_test.rb
identical test/fixtures/books.yml
任何人都知道可能會導致這些錯誤?
我用固定雷'紅寶石2.3.3p222(2016年11月21日修訂56859)x86_64的-darwin16]'而且還可以獲得這個問題。 – aircraft
如何忽略警告?運行「rails s」失敗 – Sauron
@Sauron它不應該因爲警告而失敗。也許你還有一些錯誤? – IngoAlbers