문제

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