I m using Rails 4 & gem 'audited', '~> 4.2'
I tried both rails generate audited:install
and audited install
commands after installing Audited gem, but I'm not getting audit.rb file, instead I'm getting a Could not find generator 'audited:install'
error.
Is there any other command? Thanks.
Thanks @Lahiru ,
In Gemfile:(add one more gem with audited)
gem "audited", "~> 4.0"
gem 'audited-activerecord', '~> 4.2'
$ bundle install
$ rails generate audited:install
Its working for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.