Note that there are some explanatory texts on larger screens.

plurals
  1. POHow Can I Add Plugins To Rails?
    primarykey
    data
    text
    <p>I'm not exactly sure if I can ask this question, but I definitely need an answer for this. I'm working on a Rails project- a forum- and I want to know how I can implement 'plugins' in it.</p> <p>Basically, I want someone who doesn't know a lot about programming or ruby on rails to be able to add functionality to my forums (assuming they cloned my forum onto their server). The general ideas are</p> <ul> <li>The plugins would have their own directory, like <code>plugins</code>, and would be separated in this directory by the plugin name.</li> <li>I would be able to run a command like <code>rake forum:plugins:install some-url</code> that would download and install the plugin for them</li> <li>The plugins would be able to modify/add assets, as well as change views, controllers, or models</li> <li>The plugins do not change the code of the actual forum</li> </ul> <p>When starting the project, I had the idea in my head that I could just apply a patch or two that would install plugins, but that would be terrible when the user would have to upgrade the forums.</p> <p>So, my questions are:</p> <ol> <li>How can I implement my plugins as outlined above?</li> <li>Is it a good idea to do this using rails?</li> </ol> <p>Again, I'm not sure if these questions are allowed, but I guess I'll find out.</p> <p>Just to clarify, I'm looking for a system akin to SMF's package feature (which allows you to import and install plugins/packages on the forum software itself). I'm not looking for plugins for rails itself, but rather the application running on rails (the forums).</p> <p><strong>TL;DR</strong>: I'm looking for a way to make a modification to a rails app without modifying the source code. I am <em>NOT</em> looking for rails 2 plugins, or rubygems.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload