Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a rails admin template

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 aureus.gemspec
Octocat-spinner-32 config.ru
README.md

aureus

a framework for rails admin interfaces

Aureus is a tool to quickly generate admin interfaces for a rails app. It's between scaffolding and tools like ActiveAdmin.

General Concept

The idea behind aureus is to abstract as much as possible of GUI rendering by still giving enough freedom for customization. A typical aureus driven view would look like this:

= aureus_row do |r|
  = aureus_box 'Datatable' do
    = aureus_datatable Resource.all do |t|
      - t.head do |h|
        - h.text 'Title'
        - h.text 'Text'
      - t.row do |r,res|
        - r.identifier res.id
        - r.cell res.title
        - r.cell res.text
        - r.button :show, 'url'
        - r.button :edit, 'url'
        - r.button :destroy, 'url', confirm: 'Delete user?'

Installation

To use aureus simply require the gem:

gem 'aureus'

Asset Pipeline

Aureus uses the rails asset pipeline to load and override the style and behavior.

Change your application.scss to match the following:

//= require aureus
//= require_self

@import 'aureus/skin/default';
@import 'aureus/theme';

Change your application.js to match the following:

//= require aureus
//= require_self

$(function(){
  aureus({
    remove_messages_after: 2
  });
});

You can now use the aureus framework to rapidly build awesome interfaces!

Generators

Aureus has a bunch of generators built-in to easily generate a complete interface.

Layout & Views

  • Run rails g aureus:layout application to generate a typical aureus layout.
  • Run rails g aureus:views Resource ResourcesController to generate aureus views for a model and controller.

Devise

  • Run rails g aureus:devise_views devise to generate views using aureus helpers.
  • Run rails g aureus:devise_i18n devise to generate the i18n file used by the views.
  • Run rails g aureus:devise_invitable_views devise to generate views using aureus helpers.
  • Run rails g aureus:devise_invitable_i18n devise to generate the i18n file used by the views.
Something went wrong with that request. Please try again.