Displaying 2 results from an estimated 2 matches for "rb_load_fil".
Did you mean:
rb_load_file
2005 Dec 18
8
Invoking Rails from an API
...;http://localhost:3000/MyTest#index" );
::SetEnvironmentVariable( "QUERY_STRING", "" );
::SetEnvironmentVariable( "REQUEST_METHOD", "GET" );
::SetEnvironmentVariable( "CONTENT_LENGTH", "0" );
//ruby_script("embed" );
//rb_load_file( "public\\dispatch.rb" );
rb_load_file( "public\\dispatch.rb" );
//ruby_exec();
ruby_run();
ruby_finalize();
return 0;
}
==OUTPUT==
./public/../config/boot.rb:15:in `require'': no such file to load --
rubygems (Lo
adError)
from ./public/../config/boot....
2006 May 19
14
Running Rails from embedded Ruby
Is it possible to run a Rails application from embedded ruby?
I''m thinking of replacing dispaches with a C application which will then
call the normal Rails dispaches and so on...
Is this do-able?
Many thanks, Kris.
--
Posted via http://www.ruby-forum.com/.