We introduce new way of development plugins for Redmine (and Easy Redmine of course) which is almast same as developing standard rails gems.
# Introduce
RYS engines are separated to few gems, and source code is on github. So for full documentation what is RYS and how it works, please check our github page.
https://github.com/easysoftware/rys
# Lukas's personal workflow
How to start develop with RYS? There are some of my recommendations...
## You need Redmine of Easy Redmine first
Because RYS is designed for developing (easy)Redmine plugins, you need download one of it.
We have prepared simple generator of RYS engines
> HINT: Easy Redmine from platform version 04.00 includes rys gem. The best is use our 'devel'
### Generate your engine
1. Add in your Redmine gem "rys"
2. Run rails generate of RYS
rails generate rys:plugin NAME
### Move generated code to work directory
All engines will have separated GIT repository. Its better to store engines outside of ER git repository.
> HINT: Use `--path` with generator.
### Dummy application
I like rails engines, and Rails 5 engines is the best to develop with dummy application, which not contains lot of unnecessary code. In Ruby Mine I have opened only RYS, so its fast and faster :)
So I take our 'devel' repository, clone as `dummy` and remove *_ALL unnecessary plugins_*.
This dummy I have symlinked to `test/dummy` in RYS engine.
### Prepare to test
1. bundle install - based my experience you need run this many times :)
1. Be sure you have configured `config/database.yml` in your dummy.