Ruby-on-rails Rails Admin 与 ActiveAdmin

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6542075/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 01:30:10  来源:igfitidea点击:

Rails Admin vs. ActiveAdmin

ruby-on-railsrubyruby-on-rails-3activeadminruby-on-rails-plugins

提问by erickreutz

I've been looking into some rails admin plugins and came across these:

我一直在研究一些 Rails 管理插件并遇到了这些:

https://github.com/gregbell/active_admin

https://github.com/gregbell/active_admin

https://github.com/sferik/rails_admin

https://github.com/sferik/rails_admin

https://github.com/thoughtbot/administrate(EDIT: added later)

https://github.com/thoughtbot/administrate(编辑:稍后添加)

Any suggestions as to which one to go with. I would need it to support model associations and file uploads abilities.

关于选择哪一个的任何建议。我需要它来支持模型关联和文件上传功能。

采纳答案by Harish Shetty

I vote for rails_admin. I like its looks and the fact that out of the box all the models are available for administration. The history feature is quite useful too.

我投赞成票rails_admin。我喜欢它的外观,而且所有型号都可以直接用于管理。历史功能也非常有用。

Any project with Yehuda Katz as a mentor should be a safe bet.

任何以 Yehuda Katz 为导师的项目都应该是一个安全的赌注。

回答by ndbroadbent

I personally think the two could be merged, and have just raised the issue on both projects:

我个人认为两者可以合并,并且刚刚在两个项目上提出了这个问题:

I think it would be great to take the best parts from both, and collaborate on the missing pieces.

我认为从两者中提取最好的部分,并在缺失的部分上进行协作会很棒。

回答by Michael Hellein

I think it's really a matter of personal preference. More people are using rails_admin[*], but I prefer active_admin.

我认为这真的是个人喜好的问题。更多的人在使用 rails_admin[*],但我更喜欢 active_admin。

The reasons I chose ActiveAdmin were predominantly that it was developed with assumptions that I would make myself: using gems like devise and inherited_resources, and using a nice form builder (formtastic, though I would have chosen simple_form).

我选择 ActiveAdmin 的原因主要是它是根据我自己的假设开发的:使用像 devise 和inherited_resources 这样的 gem,并使用一个不错的表单构建器(formtastic,虽然我会选择 simple_form)。

I actually prefer that not all models are exposed to the admin by default, though rails_admin supports that with 'config.included_models'.

我实际上更喜欢默认情况下并非所有模型都向管理员公开,尽管 rails_admin 支持“config.included_models”。

[*] Watches/forks on https://github.com/gregbell/active_adminvs https://github.com/sferik/rails_admin- though the gap is closing.

[*] https://github.com/gregbell/active_adminhttps://github.com/sferik/rails_admin上的 Watch/forks - 尽管差距正在缩小。