Chris Kutler wrote:
> Hello,
>
> I am working on the 6.5 version of
>
http://www.netbeans.org/kb/61/ruby/getting-started.html#workingrails
> and I have a problem I don't know how to solve.
>
> With WEBrick, the IDE runs the application from the project directory,
> so it works if I put data.yml file in the project directory (the IDE
> reads data from this file).
>
> With 6.5, the IDE uses the GlassFish app server by default, and it is
> complaining that it cannot find the data.yml file. What do I need to
> do to make a GlassFish equivalent version of this tutorial?
In your item.rb, change DATA_FILE definition to this:
DATA_FILE = RAILS_ROOT + "/data.yml"
Don't rely on the current working directory.
-Peter
>
> Thanks for anyone who can help,
>
> Chris
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
dev-unsubscribe@...
> For additional commands, e-mail:
dev-help@...
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
dev-unsubscribe@...
For additional commands, e-mail:
dev-help@...