Acts as attachement

Hi guys

Question about acts as attachment still getting the following error

undefined method `content_type’

I have set everything up according to the following page however i am
still have trouble

http://weblog.techno-weenie.net/articles/acts_as_attachment

One thing, I have wanted to add this to an existing model in my system.
I have not used the…

script/generate attachment_model dvd_cover

to create my model it was already there. But i have added in all the
lines that are needed. Any ideas about what i am doing wrong?

Thanks for your time reading this

are you sure you installed from the correct source. i believe if your
using edge, its a different version from stock. recheck the
script/plugin install path.

Stewart wrote:

Hi guys

Question about acts as attachment still getting the following error

undefined method `content_type’

I have set everything up according to the following page however i am
still have trouble

http://weblog.techno-weenie.net/articles/acts_as_attachment

One thing, I have wanted to add this to an existing model in my system.
I have not used the…

script/generate attachment_model dvd_cover

to create my model it was already there. But i have added in all the
lines that are needed. Any ideas about what i am doing wrong?

Thanks for your time reading this

On 11/19/06, Stewart [email protected] wrote:

http://weblog.techno-weenie.net/articles/acts_as_attachment
Thanks for your time reading this
Check if your existing model has all the right attributes, such as the
content_type column.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

Rick O. wrote:

On 11/19/06, Stewart [email protected] wrote:

http://weblog.techno-weenie.net/articles/acts_as_attachment
Thanks for your time reading this
Check if your existing model has all the right attributes, such as the
content_type column.


Rick O.
http://weblog.techno-weenie.net
http://mephistoblog.com

the model is correct. However because of the rest of my team i am unable
to upgrade to 1.1.6. We are still on 1.1.2.