# Ruby app to rails?

**URL:** <https://www.ruby-forum.com/t/ruby-app-to-rails/63225>\
**Category:** Rails\
**Created:** [June 13, 2006, 10:36am UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225 "2006-06-13T10:36:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lassethomsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Post date:** [June 13, 2006, 10:36am UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225/1 "2006-06-13T10:36:03Z")

</div>

Hi.

Im am considering porting an c++ application to Ruby, and me company  
would also like to have an web-version of this particular application.

If say there is an XML validator in the app. Then can Ruby and RoR share  
this in an easy way, so i wouldnt have to maintain 2 branches of the  
same XML validator.

Best Regards.  
Lasse Thomsen

---

<div class="post-metadata">

**Author:** ![lassethomsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Post date:** [June 13, 2006, 4:57pm UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225/2 "2006-06-13T16:57:09Z")

</div>

On a strict code basis, use of svn externals might help here.

For a functional share usage, you could use simple web-services. If your  
data is already XML based, web-services will suck this right up in a  
hurry.

-Nick

---

<div class="post-metadata">

**Author:** ![lassethomsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Post date:** [June 13, 2006, 10:10pm UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225/3 "2006-06-13T22:10:07Z")

</div>

Nick S. wrote:

> On a strict code basis, use of svn externals might help here.
> 
> For a functional share usage, you could use simple web-services. If your  
> data is already XML based, web-services will suck this right up in a  
> hurry.
> 
> -Nick

My data isnt nessacary XML based, it can be any type of format. Ranging  
from database entry to mission-files and XML. The idea is to use an  
build pattern, so that we can process the data apart from the view, so  
the idea is to have build a view for the standalone application and a  
view for the web application. (they donst display data in the same way)

But if i could share the code-base for the engine, then it would  
wonderfly. Perpaps via web-services, which I will look into.

Thanks for your reply.

Best Regards.  
Lasse Thomsen

---

<div class="post-metadata">

**Author:** ![lassethomsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Post date:** [June 13, 2006, 10:18pm UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225/4 "2006-06-13T22:18:01Z")

</div>

Lasse Thomsen wrote:

> Hi.
> 
> Im am considering porting an c++ application to Ruby, and me company  
> would also like to have an web-version of this particular application.
> 
> If say there is an XML validator in the app. Then can Ruby and RoR share  
> this in an easy way, so i wouldnt have to maintain 2 branches of the  
> same XML validator.
> 
> Best Regards.  
> Lasse Thomsen

As long as the business logic is separated out into a library it should  
be super simple. Just add a svn:externals in your /lib that pulls the  
app libraries from wherever they are. Then your controller just trigger  
the library methods.

---

<div class="post-metadata">

**Author:** ![lassethomsen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lassethomsen](https://www.ruby-forum.com/u/lassethomsen)\
**Post date:** [June 13, 2006, 10:51pm UTC](https://www.ruby-forum.com/t/ruby-app-to-rails/63225/5 "2006-06-13T22:51:48Z")

</div>

Alex W. wrote:

> As long as the business logic is separated out into a library it should  
> be super simple. Just add a svn:externals in your /lib that pulls the  
> app libraries from wherever they are. Then your controller just trigger  
> the library methods.

Thanks, just what i wanted to hear. (We are still in the look-around in  
new techs to consider, but this made Ruby and RoR sound more as a good  
way to go)

Best Regards  
Lasse Thomsen
