看板 Ruby 關於我們 聯絡資訊
環境: e.g. Ruby 1.8.7 Rails 2.2.2 狀況: 想創個資料庫記錄商品 ruby script/generate scaffold product \title:string description:text image_url:string 接著輸入了 rake db:migrate 沒想到畫面居然顯示 rake aborted! ... ...: syntax error, unexpected $undefined, expecting tSTRING_CONTENT or tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END t.string :\title ^ 其實我是照著Agile Web Development with Rails 3rd書裡面的照打 但是卻出現錯誤 想請問為什麼會這樣呢? 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.197.154
ducksteven:刪掉 \ 試試 10/16 02:58
poopoo888888:解決了!謝謝ducksteven大大! 10/16 10:43
ducksteven:附帶一提那個 \ 是「shell指令接下一行」的意思~要換行 10/19 03:06
poopoo888888:原來如此! 10/20 22:58