Skip to content

Generators

Ondřej Moravčík edited this page Sep 26, 2018 · 1 revision

Plugin

rails generate rys:plugin --help
rails generate rys:plugin NAME

The target direcotry is evaluated in this order:

  • --path options
  • RYS_PLUGINS_PATH environemnt variable
  • RAILS_ROOT/rys_plugins

Gem is also added into Gemfile.local.

Patches

rails generate rys:patch TYPE PLUGIN NAME

rails generate rys:patch m RYS_PLUGIN_NAME Issue
rails generate rys:patch model RYS_PLUGIN_NAME Issue
rails generate rys:patch helper RYS_PLUGIN_NAME Issues

Or you can use interactive generator

rails generate rys:ipatch

Rails generators

You can use the same generator like in any Rails plugin. Just add prefix rys and specify Rys plugin name.

rails generate rys:model RYS_PLUGIN_NAME ...normal arguments...
rails generate rys:scaffold RYS_PLUGIN_NAME ...normal arguments...
rails generate rys:controller RYS_PLUGIN_NAME ...normal arguments...

Rys basic

Dependencies

Tests

Management

Clone this wiki locally