关于在 Rails 应用程序中处理 META 关键字和描述的好方法的建议?
是否有关于 gem 的建议来处理 Rails 应用程序中的元关键字和元描述?经过很多麻烦之后,我已经有了Friendly_id,但我希望有一个好的方法来添加元标记和描述,而不必在我的代码中对它们进行硬编码。
有人对 Rails 有一个好的元关键字和描述 gem 的经验吗?我可以用它来促进这项任务?
Are there recommendations for a gem to handle the meta keywords and meta descriptions in a rails app? I already have friendly_id in place after much trouble but would like to have a good way to add meta tags and descriptions without having to hardcode those in my code.
Anyone have experience with a good meta keyword and description gem for Rails that I could use to facilitate in this task?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我正在使用这个[1],非常简单,一切都需要这样!
拥抱!
[1] https://github.com/lassebunk/metamagic
I'm using this[1], much simple, how everything needs be!
Hugs!
[1] https://github.com/lassebunk/metamagic
元标记的详细文档位于 https://github.com/kpumuk/meta-tags
在您的视图或控制器中,使用
然后在您的布局文件中:
您还可以将其用于 Open Graph 元标记。
A well-documented gem for meta tags is at https://github.com/kpumuk/meta-tags
In your view or controller, use
And then in your layout file:
You can also use it for Open Graph meta tags.