Re: [Rails] Re: Reg: Accessing files from parent folder in child folder

2015-11-27 Thread Colin Law
On 27 November 2015 at 10:56, VIDYA SAGAR POGIRI wrote: > > Ruby App running on Windows > Im using Windows > You can use the method system or backticks to run commands such as dir and get the result back [1] [2]. When you have found the file you can open it using the normal ruby file methods.

[Rails] Re: Reg: Accessing files from parent folder in child folder

2015-11-27 Thread VIDYA SAGAR POGIRI
Ruby App running on Windows Im using Windows What operating system are you running under? On Friday, November 27, 2015 at 3:27:58 PM UTC+5:30, VIDYA SAGAR POGIRI wrote: > > > > > > Hi, > I want to access the files in folder 2 from the folder 4, I mean my Present > Working Directory is 4 > >

Re: [Rails] Reg: Accessing files from parent folder in child folder

2015-11-27 Thread Colin Law
On 27 November 2015 at 10:38, VIDYA SAGAR POGIRI wrote: > Windows OS > But i want to access the images in folder 1 from folder 3 and i also want > the complete path of the images > Go back to my post and please answer *all* the questions. Thanks Colin > > Thanks, > > Vidya Sagar Pogiri, > Mo

Re: [Rails] Reg: Accessing files from parent folder in child folder

2015-11-27 Thread VIDYA SAGAR POGIRI
Windows OS But i want to access the images in folder 1 from folder 3 and i also want the complete path of the images Thanks, Vidya Sagar Pogiri, Mobile:9597992299 On Fri, Nov 27, 2015 at 4:01 PM, Colin Law wrote: > On 27 November 2015 at 09:57, VIDYA SAGAR POGIRI < > vidyasagarpog...@gmail.com

Re: [Rails] Reg: Accessing files from parent folder in child folder

2015-11-27 Thread Colin Law
On 27 November 2015 at 09:57, VIDYA SAGAR POGIRI wrote: > > > > > Hi, > I want to access the files in folder 2 from the folder 4, I mean my Present > Working Directory is 4 > > As so often is the case with questions here you have not provided nearly enough information to answer the question. Th

[Rails] Reg: Accessing files from parent folder in child folder

2015-11-27 Thread VIDYA SAGAR POGIRI
Hi, I want to access the files in folder 2 from the folder 4, I mean my Present Working Directory is 4 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an emai

Re: [Rails] awesome_nested_set adding a new category

2015-11-27 Thread Colin Law
On 27 November 2015 at 06:04, fugee ohu wrote: > isn't params[:category] a reference to a single field and not all the params > from the form params[:category] is identical to category_params. As an old hand I don't necessarily make use of later useful syntactical goodies in rails. Look at the

Re: [Rails] objects in the create method

2015-11-27 Thread Colin Law
On 27 November 2015 at 05:53, fugee ohu wrote: > I'm trying to follow this example in my controller: science = > Category.create!(:name => 'Science') > but most create actions look like @science=Category.new(science_params) > do I need the object to be an array beginning with @ I think this is co

Re: [Rails] awesome_nested_set adding categories

2015-11-27 Thread Colin Law
On 27 November 2015 at 01:57, fugee ohu wrote: > I'm able to follow the docs and create categorie from the rails console but > I'm having trouble working those instructions into my controller I know this > is wrong I dunno if I can use category instead of @category for the object > The browser ret