سؤال

I have a project in Ruby 1.9.2 using Rails 3.0.7 on Windows in which I would like to be able to run both Ruby and IronRuby scripts. When I attempt to call an IronRuby script (ex. - "ir example.rb") using system() or backticks, it seems as though the script is not being run in IronRuby. I have some .dll files required and when the script is being run I am receiving a LoadError saying that there is a missing helper file example.dll.rb. Does anyone have any information regarding running an IronRuby script from Rails3? Thanks!

هل كانت مفيدة؟

المحلول

When making the call to run the IronRuby script, include the path to your IronRuby bin.. ex: "system('C:\IronRuby\bin\rspec example_spec.rb')"

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top