No commit activity in last 3 years
No release in over 3 years
Application framework for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 1.1.4
~> 0.5.0
~> 2.3.3
~> 1.4.1
~> 2.1.2
~> 0.9.0
~> 2.12.2
~> 3.2.1
~> 1.3.7

Runtime

~> 1.6.8
~> 0.5.1
~> 2.2.0
~> 0.14.1
~> 2.2.6
~> 3.2.11
~> 3.2.0
~> 1.5.1
~> 0.11.3
 Project Readme

ActiveApplication

NOTICE: EXPERIMENTAL ALPHA VERSION, DO NOT USE IN PRODUCTION

Build Status Code Climate

Features

  • Authentication by Devise
  • Authorization by CanCan
  • Role management by rolify
  • Formtastic as a form builder
  • Twitter Bootstrap as a CSS framework
  • Resource handling by SimpleResource
  • Pagination by Kaminari

Requirements

  • Ruby 1.9 or greater
  • Rails 3.2 or greater

Installation

Add this line to your application's Gemfile:

gem "active_application"

And then execute:

$ bundle

Run generator:

$ rails g active_application:install

Usage

Roles

:customer           Ability to manage own resources
:administrator      Ability to manage everything
(no role)           Ability to view all resources by default (index, show)

Namespaces

:customer           Requires authentication and :customer role
:backend            Requires authentication and :administrator role
(no namespace)      Requires nothing

Route namespaces

/customer/blogs     customer/blogs#index      customer_blogs_path
/customer/posts     customer/posts#index      customer_posts_path

/backend/blogs      backend/blogs#index       backend_blogs_path
/backend/posts      backend/posts#index       backend_posts_path

/blogs              blogs#index               blogs_path
/posts              posts#index               posts_path

Controller namespaces

# app/controllers/customer/
Customer::BlogsController < ActiveApplication::Customer::UserResourceController
Customer::PostsController < ActiveApplication::Customer::ResourceController

# app/controllers/backend/
Backend::BlogsController < ActiveApplication::Backend::ResourceController
Backend::PostsController < ActiveApplication::Backend::ResourceController

# app/controllers/
BlogsController < ActiveApplication::Public::ResourceController
PostsController < ActiveApplication::Public::ResourceController

Layouts

ActiveApplication::Customer* controllers:

layout "active_application/customer"

ActiveApplication::Backend* controllers:

layout "active_application/backend"

Other controllers:

layout "application"

Support

If you have any questions or issues with ActiveApplication, or if you like to report a bug, please create an issue on GitHub.

License

MIT License. Copyright (c) 2012 - 2013 Jari Jokinen. See LICENSE for further details.