我使用meta_tags宝石来处理所有SEO元标记。
但是,当我在我的application.html.haml视图中使用时,它会显示在页面本身,这样用户也会看到它。
= set_meta_tags title: "app title, keywords...."知道为什么会这样吗?
发布于 2016-02-26 21:35:48
这是HAML的行为,而不是meta_tags gem。
-# In a HAML file, ...
= '= will evaluate the ruby code and put the result on the page'
- '- will evaluate the ruby code but not put the result on the page'参考资料:evaluation
https://stackoverflow.com/questions/35659704
复制相似问题