@mentions for Users with ActionText in Rails6; Rails6.1更新。

git clone从https://github.com/chentianwei411/at-mentions-with-action-text

先fork下来,然后拷贝https连接,最后在terminal上:

git clone https://github.com/chenwei/at-mentions-with-action-text.git

然后因为ruby 和 rails版本。使用命令:

rvm 2.6.1@railsXXX版本 
#简单的集合命令,详细看之前的相关博客。

根据提示安装bundler和yarn更新。

10821  gem install bundler:2.0.1
10822  bundle update
10828  yarn install --check-files

最后rails db:migrate并rails s启动服务器localhost:3000


rails6.1后: Module#parent_name帮助方法被替换:

    # config.application_name = Rails.application.class.parent_name
    config.application_name = Rails.application.class.module_parent_name


猜你喜欢

转载自www.cnblogs.com/chentianwei/p/10655122.html