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.
我右键单击我的 rails 项目的项目文件并创建了一个新的 ruby 文件。然后我右键单击视图并创建了一个新的 erb 文件我添加了一个文本框并提交按钮并单击页面(设计)它给了我这个错误:
找不到布局文件
任何人都可以帮我吗?
谢谢
我不确定 Ruby in Steel 特别是,但 Rails 应用程序在[app root]/app/views/layouts. 在一个新文件夹中,运行rails someappname,然后rails scaffold something从命令行运行,然后导航到someappname/app/views/layouts查看 Rails 中的布局是什么样的。
[app root]/app/views/layouts
rails someappname
rails scaffold something
someappname/app/views/layouts