![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there I make a call jsut like this: value = `./simulated_annealing` Which is a C Object file, but Rails tells me it cannot find that file. I put it in the same dir that the rest of the models files (since it's called by one of those models), but I guess it should be in any other place. What do I have to do? |
|
-- Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ |
#3
| |||
| |||
|
|
What the current directory is might depend on how you start the app, but in general it is the top level of your app. Either chdir to the folder containing your binary, use an absolute path or specify the path relative to the current directory. Fred |
#4
| |||
| |||
|
|
Frederick Cheung wrote: What the current directory is might depend on how you start the app, but in general it is the top level of your app. Either chdir to the folder containing your binary, use an absolute path or specify the path relative to the current directory. Fred Oh, I feel stupid. I just ran a "ls" command and it's just as you say, it's in the top level. |
|
Thanks! Best, |
#5
| |||
| |||
|
|
Hi there I make a call jsut like this: value = `./simulated_annealing` Which is a C Object file, but Rails tells me it cannot find that file. I put it in the same dir that the rest of the models files (since it's called by one of those models), but I guess it should be in any other place. What do I have to do? |
![]() |
| Thread Tools | |
| Display Modes | |
| |