【发布时间】:2020-05-06 10:33:38
【问题描述】:
我正在尝试在 Rails 6 上安装 milia gem,但它给了我一个错误
我的宝石文件
gem 'pg', '>= 0.18', '< 2.0'
gem 'devise'
gem 'milia'
ApplicationController.rb
class ApplicationController < ActionController::Base
before_action :authenticate_tenant!
end
我用于安装的命令 rails g milia:install --org_email='noreply@example.com'
错误生成
/home/kash/.rvm/gems/ruby-2.7.0/gems/activerecord-6.0.2.2/lib/active_record/type.rb:27:
warning: Using the last argument as keyword parameters is deprecated; maybe ** should be
added to the call
/home/kash/.rvm/gems/ruby-2.7.0/gems/activerecord-
6.0.2.2/lib/active_record/type/adapter_specific_registry.rb:9: warning: The called method
`add_modifier' is defined here
/home/kash/.rvm/gems/ruby-2.7.0/gems/milia-
0.3.30/app/controllers/registrations_controller.rb:5:in `<class:RegistrationsController>':
undefined method `skip_before_filter' for Milia::RegistrationsController:Class
Did you mean? skip_before_action (NoMethodError)
from /home/kash/.rvm/gems/ruby-2.7.0/gems/milia-
0.3.30/app/controllers/registrations_controller.rb:3:in `<module:Milia>'
from /home/kash/.rvm/gems/ruby-2.7.0/gems/milia-
【问题讨论】: