Search code examples
ruby-on-railsrails-admin

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 .


Solution

  • 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.