Steve Klabnik changelog.com/posts

RailsAdmin - Rails 3 engine to view your data

I am super pumped about RailsAdmin. It’s a Ruby Summer of Code project by Bogdan Gaza. But apparently not just him, as he tweeted:

hurrycane tweet

So what’s it do? Let’s let a screenshot do the talking:

rails admin

Yep. Super simple access to view, edit and search all of the models in your Rails 3 application. It’s incredibly easy to install, put this in your Gemfile:

gem 'devise' # Devise must be required before RailsAdmin
gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git'

and then run this:

$ bundle install
$ rails generate rails_admin:install_admin

Hitting http://localhost:3000/admin will take you to the panel, after you rails server, of course. RailsAdmin uses the standard ‘config method that takes a block’ pattern to configure itself.

RailsAdmin.config do |config|
  config.model Team do
    list do
      field :name
      field :created_at
    end
  end
end

There are approximately 1 zillion options, too. You can check them all out in the project’s README file.

[Source on GitHub] [Readme] [A presentation on Slidshare]


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00