我的索引頁面在html結果之後呈現文本結果。Rails:我的頁面使用html佈局呈現文本結果
[#<User id: 1, username: "mihracefendi", name: "Mihraç", bdate: nil, grad: nil, school: nil, city: nil, about: "Mikkembel bir oyuncu ve aynı zamanda seyis. Kendis...", created_at: "2017-10-04 15:49:54", updated_at: "2017-10-05 19:08:49", email: "[email protected]", avatar: "lohusa.jpg", gender: nil, lastname: "Cerrahoğlu">, #<User id: 2, ...>, ...]
爲什麼會發生,如何解決這個問題?
感謝
你應該總是包括代碼詢問時「爲什麼會發生這種情況?「或者「爲什麼這不工作?」題。在這種情況下,罪魁禍首可能是你的'_index.html.erb' - 所以你可能想編輯你的問題來包含該文件。否則,我們只是在猜測。 – jvillian