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.
On Mon, Nov 8, 2010 at 10:13 AM, Pradeep Achuthan <[email protected]> wrote: > 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/imag...@imagename.. > > Please help me. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

