Need help with Getting Started tutorial for 6.5

View: New views
2 Messages — Rating Filter:   Alert me  

Need help with Getting Started tutorial for 6.5

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Thanks for anyone who can help,

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Need help with Getting Started tutorial for 6.5

by Peter Williams-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



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@...

LightInTheBox - Buy quality products at wholesale price