The rail books and web pages I follow are stuck in very simple projects in order to provide complete examples. I am moving away from a small project application and into the field of non-browsers, and you need to decide where to place the code that will be used by all interested parties.
A non-browser client is a script that runs on any computer that can connect to the database. Browser clients write commands to the database, which the script parses and decides what to do. Upon completion, the script then writes its result back. The script is not started by the RoR server, but has access to its directory structure.
Where is best to live for shared code, and how would the RoR handler handle this? The code in question does not really belong to the model, otherwise I would drop it there and do it with it.
source
share