Git Product home page Git Product logo

active_admin's Introduction

Active Admin

Active Admin is a Ruby on Rails framework for creating elegant backends for website administration.

<img src=“https://secure.travis-ci.org/gregbell/active_admin.png?branch=master” /> <img src=“https://codeclimate.com/github/gregbell/active_admin.png” /> <img src=“https://gemnasium.com/gregbell/active_admin.png” /> <img src=“https://coveralls.io/repos/gregbell/active_admin/badge.png?branch=master” /> <img src=“http://badgr.co/gittip/activeadmin.png” />

Documentation & Support

Goals

  1. Allow developers to quickly create gorgeous administration interfaces (Not Just CRUD)

  2. Build a DSL for developers and an interface for businesses.

  3. Ensure that developers can easily customize every nook and cranny of the interface.

  4. Build common interfaces as shareable gems so that the entire community benefits.

Getting Started

Active Admin is a Ruby Gem.

gem 'activeadmin'

More accurately, it’s a Rails Engine that can be injected into your existing Ruby on Rails application.

$> rails generate active_admin:install

The generator adds these core files, among others:

app/admin/dashboard.rb
app/assets/javascripts/active_admin.js.coffee
app/assets/stylesheets/active_admin.css.scss
config/initializers/active_admin.rb

Migrate your database and start the server:

$> rake db:migrate
$> rails server

Visit localhost:3000/admin and log in as the default user:

Voila! You’re on your brand new Active Admin dashboard.

To register an existing model with Active Admin:

$> rails generate active_admin:resource MyModel

This creates a file at app/admin/my_model.rb to set up the UI; refresh your browser to see it.

Upgrading

When upgrading to a new version, it’s a good idea to check the CHANGELOG.

To update the JS & CSS assets:

$> rails generate active_admin:assets

You should also sync these files with their counterparts in the AA source code:

  • app/admin/dashboard.rb ~>

  • config/initializers/active_admin.rb ~>

Tools Being Used

We try not to reinvent the wheel, so Active Admin is built using many other open source projects:

Inherited Resources

Simplifies controllers with pre-built RESTful controller actions

Formtastic

A Rails form builder plugin with semantically rich and accessible markup

Devise

Powerful, extensible user authentication

Kaminari

Clean & powerful pagination for your models

Iconic Icons

An excellent SVG icon set designed by P.J. Onori

active_admin's People

Contributors

gregbell avatar pcreux avatar seanlinsley avatar mattvague avatar macfanatic avatar jancel avatar samvincent avatar felixbuenemann avatar tinynumbers avatar fabiokr avatar jeremyruppel avatar parndt avatar samuelreh avatar quark-zju avatar nicolas-simplex avatar ebeigarts avatar amiel avatar damrbaby avatar mperham avatar doabit avatar whatthewhat avatar zorab47 avatar iamdeuterium avatar comboy avatar nathancarnes avatar shekibobo avatar dkubb avatar tanraya avatar tricknotes avatar lte avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.