Run into a snag following this: http://www.napcs.com/howto/railsonwindows.html I get everything configured properly so that I can fire up WEBrick from Eclipse, and get this error: "C:\ruby\bin\ruby.exe: No such file or directory -- script/server (LoadError)" I looked in the troubleshooting and it says I might not have the project selected - but in my "Ruby Resources" panel on the left I have a project selected. I trace the path in my folders and everything appears to be correct. Anyone else hit this snag or know why?
Hi, Jason,
I''ve set up my development environment as described in this source and
everything went well. Have you douplechecked to set the workspace to
"${project_loc}" in your external tools configuration? You could try
to
hardcode that over "Browse Workspace" or "Browse
Filesystem".
Jan Prill
Jason Pfeifer wrote:
> Run into a snag following this:
> http://www.napcs.com/howto/railsonwindows.html
>
> I get everything configured properly so that I can fire up WEBrick
> from Eclipse, and get this error:
>
> "C:\ruby\bin\ruby.exe: No such file or directory -- script/server
> (LoadError)"
>
> I looked in the troubleshooting and it says I might not have the
> project selected - but in my "Ruby Resources" panel on the left I
have
> a project selected.
>
> I trace the path in my folders and everything appears to be correct.
> Anyone else hit this snag or know why?
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
I used the setup described just fine as well. However, as another option you could use the RadRails plugin for Eclipse that also includes WEBrick. I find this to be the best "no-brainer" solution. http://www.radrails.org/page/download 2005/10/20, Jan Prill <JanPrill-sTn/vYlS8ieELgA04lAiVw@public.gmane.org>:> > Hi, Jason, > > I''ve set up my development environment as described in this source and > everything went well. Have you douplechecked to set the workspace to > "${project_loc}" in your external tools configuration? You could try to > hardcode that over "Browse Workspace" or "Browse Filesystem". > > Jan Prill > > Jason Pfeifer wrote: > > > Run into a snag following this: > > http://www.napcs.com/howto/railsonwindows.html > > > > I get everything configured properly so that I can fire up WEBrick > > from Eclipse, and get this error: > > > > "C:\ruby\bin\ruby.exe: No such file or directory -- script/server > > (LoadError)" > > > > I looked in the troubleshooting and it says I might not have the > > project selected - but in my "Ruby Resources" panel on the left I have > > a project selected. > > > > I trace the path in my folders and everything appears to be correct. > > Anyone else hit this snag or know why? > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi Jason....
I''ve had a few people run into snags with that problem. Double-check
your webrick setup options.... Make sure they are set up as follows:
* Select Run -> External Tools -> External Tools
* Select "Program" from the configuration tree
* Select New to create a new program
* Enter "Start WEBrick" as the name
* Enter C:\ruby\bin\ruby.exe for the Location
* For the Working Directory, use
${project_loc}
* Enter script\server for the Arguments
* Select the refresh tab and check Refresh Resources Upon Completion
* Select the Common tab
o Find the section for Display in Favorites Menu
o Check the box next to External Tools
* Select Apply
Now if you''re getting that error, it means that your working folder
isn''t set correctly. It could also be that you don''t have a
rails
application created yet. (Check to make sure that there is a scripts
folder and also that there is a ''server'' file in that folder.
The ${project_loc} variable should work for this provided that you
actually have a rails project. I''m willing to bet that there''s
a simple
path issue that''s incorrect.
If you''re still stuck, email me off the list and I''ll help you
get it
worked out.
-----Original Message-----
From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On
Behalf Of Jason Pfeifer
Sent: Thursday, October 20, 2005 2:53 AM
To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
Subject: [Rails] Configuring Eclipse for Ruby on Rails
Run into a snag following this:
I get everything configured properly so that I can fire up WEBrick from
Eclipse, and get this error:
"C:\ruby\bin\ruby.exe: No such file or directory -- script/server
(LoadError)"
I looked in the troubleshooting and it says I might not have the project
selected - but in my "Ruby Resources" panel on the left I have a
project
selected.
I trace the path in my folders and everything appears to be correct.
Anyone else hit this snag or know why?
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails