刚刚将项目更新为rails 7,该项目唯一兼容的ActsAsTaggableOn版本是版本5。Rails couldn't find a valid model for ::ActsAsTaggableOn::Tagging association. Please provide the :class_name option on the association declaration. If :class_name is already provided, make sure it's an
Acts as-Taggable- on无法正确地打印出仅名称列,而不是对象本身的整个散列信息。如何设置显示页面以分别打印模型的每个标记?到目前为止,我所拥有的代码如下。<%= @user.user_profile.tags.each do |tag| %><% end %>#<ActsAsTaggableOn::Tag::ActiveRecord_Associations_CollectionProxy:0x2b7534d0> games [#<Act
我在Ruby on Rails应用程序中使用了acts as-taggable-on,允许用户将标签添加到他们的联系人列表中(就像带标签的地址簿一样)。对于使用标准RESTful路径contacts/new、contacts/[:id]、contacts/:id/edit等的用户来说,添加/更新带有标签的联系人可以完美地工作。电子邮件
Rails: 5.0.2
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
gem 'acts-as-taggable-onruntime.rb:94:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'acts-as-tagga