Closed ybart closed 8 years ago
Looks like I overlooked the gem changed name for active_admin-sortable_tree
(with an extra underscore). So the following syntax is working :
gem "active_admin-sortable-tree", github: "zorab47/activeadmin-sortable-tree"
You can also reference the gem from Rubygems directly which include the change for Rails 4.x.
gem "active_admin-sortable_tree", "~> 0.2.0"
Great ! Thanks.
I've stuck with the same issue. May be it's better to rename github repository name?
Perhaps adding another file to require with the name activeadmin/sortable_tree
would be convenient. It would be a method of notifying those who can use Rubygems instead via a deprecation warning. The master branch is in a middle ground between being renamed and maintaining the existing URLs for those referencing the git project directly in their Gemfile
.
It is possible to reference the file to require directly, but Rubygems is still be the preferred method.
gem "activeadmin-sortable-tree", github: "nebirhos/activeadmin-sortable-tree", require: "active_admin/sortable_tree"
Another downside to using the git repository without a version constraint is that issues like this can popup without warning, which is why I prefer the Rubygems approach.
Thanks for the input @dmitry. The update path can certainly be improved. :+1:
I'm closing this for now. If it continues to be confusing please reopen.
Hi, I'm using ActiveAdmin 1.0 with Rails 4.1. I tried to replace the following in my Gemfile
which was removed with this one using:
However I get the following error from Bundler when I run
bundle update activeadmin-sortable-tree
: