Thanks, but I think I need to explain myself better. For example, I
want to write a script, executable from the command line, that takes
options from the user and performs the necessary database functions
through Rails.
If I want to edit a LineItem, let’s say, then this command line script
would not be responsible for handling locking, validation, counts,
relationships, etc. Instead, I want to have the Rails code do it.
Is this the sort of thing to which you were referring?