/rails_mdl_admin

Admin page based on Google's Material Design Lite.

Primary LanguageRubyMIT LicenseMIT

RailsMdlAdmin

A gemified version of Google's Material Design Lite library.

https://gyazo.com/744ab31cd69dcd6df101c42a328ce653

Installation

Add this line to your application's Gemfile:

gem 'rails_mdl_admin'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_mdl_admin

Usage

Install rails_mdl_admin

$ rails generate rails_mdl_admin:install

Require or impote rails_mdl_admin style

 *= require rails_mdl_admin/styles
  @import "rails_mdl_admin/styles";

Example

  1. AdminUser CRUD
$ rails g scaffold AdminUser name:string
$ rake db:migrate
  1. Install rails_mdl_admin and style sheet
$ rails generate rails_mdl_admin:install
 *= require rails_mdl_admin/styles
$ rails s
# then, access localhost:3000/admin_users

TODO

  • Add test.
  • Add sigin in/up form.
  • Add generator which provide user with admin CRUD.
  • Support haml and slim.
  • Support devise and sorcery.

Contributing

  • TODO

License

The gem is available as open source under the terms of the MIT License.