简体   繁体   中英

Compatibility issue when using rails_admin_email gem

I am using rails 4.2.1. I have already added rails_admin module in my app. Now, I want to add email facility for admin, so that he can send email to the users. For that, I have added rails_admin_email gem. But when I execute bundle install command some dependency issues occur

Bundler could not find compatible versions for gem "rails":
 In Gemfile:
   rails (= 4.2.1)

   rails_admin_email was resolved to 0.0.1, which depends on
     rails (~> 3.2.6)

How can I solve the issue?

Please also provide some useful hint, if there is a better way than using rails_admin_email gem

Here are my current GemFile and Gemfile.lock .

While this answer should fix the problem i would not encourage you to use rails_admin_email as it has not been touched since July 2012 and not present on rubygems.org :). Still solution below.


The problem in this case is the dependencies defined

To fix this problem you need to fork/pr rails_admin_gem to use >= 3.2.6 . Here is what i tried in my fork and it works.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM