Yawl Rails
This is the UI and Rails integration component of yawl
Install Migrations
For rails versions >= 4, the engine should automatically hook into Rails and allow you to just run rake db:migrate
.
For rails 3, migrations should be installed in the target app:
rake yawl_rails:install:migrations
Review the generated migrations then migrate:
rake db:migrate
Routing
I like to mount the engine at the root, so the following would work but you can also mount it anywhere you see fit.
mount YawlRails::Engine, at: "/"
Config
Extra config variables added:
Yawl::Config.pagination_per_page
: Number of processes to list per page
Templates
It's currently setup so that you need to use haml in yawl_rails
and assumes that you want to share your layout with it to maintain an integrated look. One caveat is that it's using bootstrap 2--maybe a rails4 only engine + bootstrap 3 is in the future?.
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