Search code examples
c#ruby-on-railsrubyactiverecordironruby

Rails + C# - Reusing Models


I'm working on a project that has a website in Rails and a C# GUI that use the same database and data models. I'd like to share the (active)models between the two parts. Any ideas on how this is possible?


Solution

  • IronRuby is exactly for that.

    You will need to run Ruby on Rails with IronRuby (you can do that via IIS too) and then you can call your C# assemblies like they were Ruby libraries.

    Some resources to get you started:

    • http://IronRuby.net - official site with some documentation (not full but you will find some good info there)
    • http://www.IronShay.com - my blog with several posts about IronRuby. You can also contact me via its contact form if you need more directions
    • http://www.ruby-forum.com/forum/34 - The IronRuby forum/mailing list, questions answered by members of the IronRuby community and the team members as well.