Integrating Rails With a Standard Ruby Application


I am considering using Ruby to write a service that will run as a back
end process and Rails for the web front end / management console. Are
there any suggestions or examples of how I might leverage some of the
Rails components like ActiveRecord for use by the back end? It would
also be nice to program application logic in a way that it could be
shared by both the back end Ruby application and the Rails web
management app.

Any input would be appreciated. Thanks!


Use rails for the whole thing, using script/runner for the backend

This will allow you easy to the entire environment system, without
doing any additional work.

– Tom M.


Good suggestion. I’ll look into it. Thanks!