inside one of the .rb files I am using in the
Rails application directory, I have ‘require
xml-simple’,
As far as I know, the content of an application file is not going to
have
any impact on whether or not you’re able to start the web server. Are
you
able to start WEBrick in a different application directory?
Just enter ‘ruby script\server’.
thats exactly what I did…I put down ‘root’ just for the heck of the
structure.
Also, you need to start WEBrick from within a Rails application directory.
thats what I am doing. but inside one of the .rb files I am using in the
Rails application directory, I have ‘require xml-simple’, which I
believe connects to the xml-simple in the gems directory inside the Ruby
directory. I dont know why is it giving me a problem with the server.
look at the error msg again, see if you can make sense out of it.
you
able to start WEBrick in a different application directory?
yes, I am able to. thanks though.
In that case, perhaps Rails had some sort of problem when it built the
directory structure. You might try just renaming the directory and
regenerate it. I’d try to start WEBrick right after generating the app.
Then you’ll know for sure whether or not it has anything to do with the
additions you’ve made. If it runs, start copying the
model/controller/view
directories back in. I’d do it in tuples (assuming you have more than
one
controller) and see if / when the problem resurfaces. If it does show
back up when you add application code, I’d recommend writing it up as a
bug.
Thanks for all your help Bill. Re-building the app directory now seems
like the only solution, especially now when I have added errors to the
same problem. and they are more weird. I ran a gem update and I guess,
the new gems files- .rb have corrupted the /app even more.
Bill W. wrote:
Hi Mikki,
mikki wrote:
Bill W. wrote:
Are
you
able to start WEBrick in a different application directory?
yes, I am able to. thanks though.
In that case, perhaps Rails had some sort of problem when it built the
directory structure. You might try just renaming the directory and
regenerate it. I’d try to start WEBrick right after generating the app.
Then you’ll know for sure whether or not it has anything to do with the
additions you’ve made. If it runs, start copying the
model/controller/view
directories back in. I’d do it in tuples (assuming you have more than
one
controller) and see if / when the problem resurfaces. If it does show
back up when you add application code, I’d recommend writing it up as a
bug.