Kindly suggest appropriate Attachment plugin/gem for use with Rails 2.0.2 and Ruby 1.8.7

Hello all,

I am trying to attach files in my RoR app. I am using Rails 2.0.2 and Ruby 1.8.7 for project specific purposes. I am using Ubuntu 10.04 OS.

I have tried out two plugins(paperclip and attachment_fu) but I have no luck so far in getting things working with them. I am basically facing compatibility issues as the configuration I am using is pretty much not used these days.

Kindly have a look at these URL'S in order to better understand the issues that I am currently facing:-

1. http://stackoverflow.com/questions/6002414/undefined-method-has-attached-file-with-paperclip-2-3-8-gem-for-rails-2-using-r

2. http://stackoverflow.com/questions/6000588/issues-with-attachment-fu-plugin-in-rails-2

It would be great if you can help me with your insights on these issues.

Also, can you kindly suggest plugins or gems which I can make use of to attach files in my rails app based on the above configuration.

Your suggestions would be really helpful,

Thank you..

Are you trying to use the most recent version? Or are you using an older version.

Looking at the git history of rails in github (https://github.com/ rails/rails/tree/v2.0.2)

It looks like 2.02 came out after Dec 16 2007.

Looking at the history of paperclip on github v 2.0 was tagged on March 18 2008.

I would start with v2.0 and see if it works and then work up the minor branch until it breaks.

Hello PsiPro,

I did try the latest version at github... May be I am fundamentally going wrong there..

I shall try to use one of their earlier commits. Their first commit for Thoughtbot starts off its commit for paperclip with this:- Commits · thoughtbot/paperclip · GitHub.

I am sorry, correct me If I didn't understand your statement

Looking at the history of paperclip on github v 2.0 was tagged on March 18 2008.

I would start with v2.0 and see if it works and then work up the minor branch until it breaks.

Are you suggesting me to clone their commit of March 18 2008..? From this URL:-

( fetched this URL from:

Commits · thoughtbot/paperclip · GitHub )

If so, Can you please tell why not from an earlier commit?.. Sometime around 2007 since Rails 2.0.2 and thoughtbot-paperclip were released sometime around the same time..

Thanks again for you inputs..

PsiPro wrote in post #999487: