This gem uses use the lastest version of Rails. Usage Docs.
Add this line to your application's Gemfile:
gem 'adminpanel'
And then execute:
$ bundle
Run:
rails g adminpanel:initialize
rake db:migrate
This create and seeds a user to the database (email: 'admin@admin.com', password: 'password').
Change the path where adminpanel is mounted
# routes.rb
mount Adminpanel::Engine => '/panel'
Change the panel locale
# application.rb
# Adminpanel supported locales :en, :es (pull requests are welcome)
config.i18n.default_locale = :es
To create a new resource:
rails g adminpanel:resource product name price:float description:wysiwyg
check the Resource Generator docs for more information.
Make sure you read the docs, there is the descriptions of every relevant part of the gem.
- Imagemagick
- Ruby 2.1.0+
- Rails 4.2+
Currently the integrations working are:
Any questions, errors or feature suggestions are welcome in the issues