Is there a good admin generator for Ruby on Rails?

前端 未结 12 1585
小蘑菇
小蘑菇 2021-01-30 21:29

My current project is in Rails. Coming from a Symfony (PHP) and Django (Python) background, they both have excellent admin generators. Seems like this is missing in Rails.

12条回答
  •  逝去的感伤
    2021-01-30 21:59

    Having also tried typus, caseincms and ActiveScaffold over the weekend, I can't rave enough about admin_data. It is

    • super-quick to install (Rails 3 is the gem, Rails 2.3 is a plugin branch, no digging through trees on github),
    • unintrusive (all code is in the vendor/admin_data folder or the gem where it belongs),
    • requires no set-up and optional configuration is one block in one file in your app,
    • correctly (!) gets all model information from your model definitions (primary_key, foreign_key, relationships etc.),
    • including multiple databases, SQL Server connections via activerecord-sqlserver-adapter, and even composite primary keys, as everything is abstracted on top of ActiveRecord, if you model works, admin_data will work,
    • works great with legacy data for the above reasons,
    • uses your existing authentication solution which is called in the most wonderful DRYness in your configuration file. It maybe less flexible or pretty than other solutions, but this plugin does many thingks right for quick admin panel setup.

提交回复
热议问题