Helena Administration
Helena Administration is a simple rails application that provides a user interface to manage apps running with the Helena framework.
Features
- Manage surveys, question groups and questions
- Survey versioning
- Export answers as CSV or JSON
Requirements
see requirements for running an application using Helena
Installation
Add this line to your application's Gemfile:
gem 'helena_administration', git: 'git://github.com/gurix/helena_administration.git'
And then execute:
$ bundle install
Usage
Add the following line to your routes to include administration in your App
mount HelenaAdministration::Engine, at: '/admin'
HelenaAdministration::ApplicationController calls by default the can_administer? method that is not implemented by default, you have to define a decorator under yourapp/app/decorators/controllers/helena_administration/application_controller_decorators.rb. i.e your current_user has an admin? attribute.
HelenaAdministration::ApplicationController.class_eval do
def can_administer?
current_user.admin? if current_user
end
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Contact
Or at #HelenaFramework on freenode.net
Support
If you like helena and want to support the development, I would appreciate a donation:
License
Helena Administration is a simple rails application that provides a user interface to manage apps running with the Helena framework. Copyright (C) 2014 Markus Graf [email protected]
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
