Because it's in another scope of object And it's nothing give to u, it's one define some methods
U can open paperclip source and find out how call upload to s3, or u can use aws-s3 gem, which simple, s3 is http based storage, simple http query, and all a done )) Sent from my iPad On Aug 8, 2010, at 4:23 AM, Sean Six <li...@ruby-forum.com> wrote: > I have a standard Paperclip setup that saves a file to my disk. In > addition I would also like the file saved to my amazon s3 bucket. > > [code] > > after_save :copy_to_s3 > > > > def copy_to_s3 > has_attached_file :photo, > :storage => :s3, > :s3_credentials => "#{RAILS_ROOT}/config/s3.yml", > :styles => { > :thumb => "100x100#", > :small => "750x750>" } > end > > [/code] > > > This is giving the error: undefined method `has_attached_file' > -- > 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 rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.