gpt4 book ai didi

ruby-on-rails - 静态#home 中的 Haml::SyntaxError?

转载 作者:行者123 更新时间:2023-12-03 08:01:03 25 4
gpt4 key购买 nike

我有这个哈姆:

#index-header
%h1 title
%p motto
%h1 Our Software
%p motto
.third-column
%h2 Product 1
%p foo
.third-column
%h2 Product 2
%p foo
.third-column
%h2 Product 3
%p foo

我得到这个错误:

Haml::SyntaxError in Static#home

Showing app/views/static/home.html.haml where line #5 raised:

Illegal nesting: content can't be both given on the same line as %h1 and nested within it.


我究竟做错了什么?谢谢。

最佳答案

我认为这是在提示,因为您有一个 <p> <h1> 中的元素标签。 (代码中的第 4 行。)

关于ruby-on-rails - 静态#home 中的 Haml::SyntaxError?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3046265/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com