[Rails] Re: Accessing a file with normal Ruby IO fails. Security issue of what?

2008-11-26 Thread RichardOnRails
Hey Rick, RAILS_ROOT was the key. I never would have dreamed that up by myself, despite my handsome collection of Rails books :-) Thanks and Best Wishes, Richard On Nov 23, 4:30 am, Rick <[EMAIL PROTECTED]> wrote: > Richard, > > What you want is: > > csv_data_dir = RAILS_ROOT + "/public/data/

[Rails] Re: Accessing a file with normal Ruby IO fails. Security issue of what?

2008-11-23 Thread RichardOnRails
Hi Rick, > csv_data_dir = RAILS_ROOT + "/public/data/csv" Now that looks like REAL Ruby-on-Rails programming. Many thanks. I'll post back on success/failure later today or tomorrow. Best wishes, Richard On Nov 23, 4:30 am, Rick <[EMAIL PROTECTED]> wrote: > Richard, > > What you want is: > >

[Rails] Re: Accessing a file with normal Ruby IO fails. Security issue of what?

2008-11-23 Thread Rick
Richard, What you want is: csv_data_dir = RAILS_ROOT + "/public/data/csv" Rick On Nov 22, 3:37 pm, RichardOnRails <[EMAIL PROTECTED]> wrote: > Hi, > > I'm developing a small  Rails 2.2.0 app.  I have a slightly modified > scaffold-generated file, > PayrollSys\app\controllers\cvs_items_controll