Customization.md

February 3, 2015 ยท View on GitHub

[ Back to TheRole ]


Customization, Rake tasks and Code generators:

Rake Tasks

Create Admin Role

rake db:the_role:admin

bundle exec rake the_role_engine:install:migrations

Code generators

If you need to overwrite something, change views or locales, you can use generators. Generators will copy files from TheRole into your Rails App:

TheRole API

Show me HELP

bundle exec rails g the_role help

Install config file and models

bundle exec rails g the_role install

Install config file

bundle exec rails g the_role config

Install models

bundle exec rails g the_role models

Install controllers

bundle exec rails g the_role controllers

Install locales

bundle exec rails g the_role locales

TheRole Management Panel

Show me HELP

bundle exec rails g the_role_management_panel help

Install views, controllers, assets

bundle exec rails g the_role_management_panel install

Install assets

bundle exec rails g the_role_management_panel assets

Install controllers

bundle exec rails g the_role_management_panel controllers

Install views

bundle exec rails g the_role_management_panel views

Install locales

bundle exec rails g the_role_management_panel locales

[ Back to TheRole ]