Is there a good admin generator for Ruby on Rails?

前端 未结 12 1558
小蘑菇
小蘑菇 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.
    0 讨论(0)
  • 2021-01-30 22:00

    Scaffolding is the normal way to create an admin backend BUT there is a project called ActiveScaffold which may solve your problem.

    0 讨论(0)
  • 2021-01-30 22:01

    I can suggest you active_admin that is best

    Active Admin main site

    0 讨论(0)
  • 2021-01-30 22:05

    The most common way to create a CRUD interface is to use Scaffold.

    ./script/generate scaffold_resource MyModel property:type property2:type2
    

    This command would generate a CRUD interface for the model named MyModel (singular) with two properties. Properties is what's called columns in DB lingo. So you could have name:string age:integer active:boolean etc.

    0 讨论(0)
  • 2021-01-30 22:06

    rails_admin appears to be the latest-n-greatest free project as of January 2011.

    ...best of all, there has been a lot of activity in the repository.

    0 讨论(0)
  • 2021-01-30 22:13

    You have mainly two:

    • ActiveScaffolding: the most popular but be careful with rails 2.1
    • Streamlined
    0 讨论(0)
提交回复
热议问题