rgrove / thoth

:skull: An unmaintained and probably broken Ruby blog engine.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to write plugin that can do some configutions as admin

dazuiba opened this issue · comments

Say I want write a plugin, when it is loaded, user can config it as administrator.

So I need these things:

  1. erb views of the configution form that use can fill
  2. web controllers to accept the filled form and save it to database
  3. db models talks to a new table(like my_plugin_config_table)

What should I do ?

May be I know how to do this.

I should write these 'configuration' in thoth.conf