Hi,
I have upgraded from rails 2 to rails3… I wanted to know to know how
to open a file and write it in a location
for eg… i need to save a image in /public/images+@imagename…
Please help me.
Hi,
I have upgraded from rails 2 to rails3… I wanted to know to know how
to open a file and write it in a location
for eg… i need to save a image in /public/images+@imagename…
Please help me.
If /public/ is an absolute path on your file-system, you can use the
standard Ruby File methods. If /public/ must be relative to your app,
use the standard File methods relative to Rails.root.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs