Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the gemfile instructions for Rails 4.1 #3466

Closed
wants to merge 1 commit into from
Closed

Adding the gemfile instructions for Rails 4.1 #3466

wants to merge 1 commit into from

Conversation

icyflame
Copy link

@icyflame icyflame commented Oct 3, 2014

Adding only gem 'activeadmin' in the Gemfile, for Rails 4.1 does not do the job.

The above four lines need to be added to make sure that activeadmin get's added, without any errors, when bundle install is run.

Adding only gem 'activeadmin' in the Gemfile, for Rails 4.1 does not do the job.

The above four lines need to be added to make sure that activeadmin get's added, without any errors, when `bundle install` is run.
@timoschilling
Copy link
Member

@icyflame
Copy link
Author

icyflame commented Oct 3, 2014

I j​ust​
​started using ActiveAdmin​. And added the line gem 'activeadmin' in my
Gemfile and then ran bundle install and got this error:

siddharth@ubuntu:blog-rails$ bundle install
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies.....
Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    activeadmin (>= 0) ruby depends on
      meta_search (>= 0.9.2) ruby depends on
        activerecord (~> 3.0.0.rc2) ruby

    rails (= 4.1.6) ruby depends on
      activerecord (4.1.6)

I am using Rails 4.1.6 (as seen above)

On some googling, I found that adding this solves the problem.

And as noted before, adding these four lines does solve the problem.

@timoschilling
Copy link
Member

@icyflame You need to do this:

gem 'activeadmin', github: 'activeadmin'

This is described in the Readme State of the project 1.0 section.

@icyflame
Copy link
Author

icyflame commented Oct 3, 2014

Okay! Thanks!

@icyflame icyflame closed this Oct 3, 2014
@icyflame
Copy link
Author

icyflame commented Oct 9, 2014

@timoschilling As I am behind a HTTP proxy, I am using:

gem 'activeadmin', :git => 'https://github.com/activeadmin/activeadmin.git'

This works. Will using this ensure that the latest version is installed if I run the bundler?

@timoschilling
Copy link
Member

Not if you run bundle, only if you run bundle update

@icyflame
Copy link
Author

icyflame commented Oct 9, 2014

I just tested it.

It works with bundle install too. So, after the first time, if I run
bundle update the gem will be up to date in my app, right?

Best Regards,

Siddharth Kannan,
Second Year, Undergraduate Student,
Mechanical Engineering Department,
Indian Institute of Technology,
Kharagpur,
West Bengal, India.
+91 9800190996.

On Thu, Oct 9, 2014 at 8:27 AM, Timo Schilling notifications@github.com
wrote:

Not if you run bundle, only if you run bundle update


Reply to this email directly or view it on GitHub
#3466 (comment)
.

@timoschilling
Copy link
Member

Yes on the first bundle run it used the newest commit, to.

@icyflame
Copy link
Author

icyflame commented Oct 9, 2014

@timoschilling Thanks a lot! Do you consider that this technique should be added to the README? SInce this seems to be the only way to work with ActiveAdmin, when working from behind a HTTPS proxy.

@timoschilling
Copy link
Member

@icyflame I don't think so, that is knowledge about Bundler not about ActiveAdmin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants