# Pat Shaughnessy's Paperclit problem

**URL:** <https://www.ruby-forum.com/t/pat-shaughnessys-paperclit-problem/188774>\
**Category:** Rails\
**Created:** [May 18, 2010, 10:53am UTC](https://www.ruby-forum.com/t/pat-shaughnessys-paperclit-problem/188774 "2010-05-18T10:53:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/3d9bf3/32.png) [@tom](https://www.ruby-forum.com/u/tom)\
**Post date:** [May 18, 2010, 10:53am UTC](https://www.ruby-forum.com/t/pat-shaughnessys-paperclit-problem/188774/1 "2010-05-18T10:53:03Z")

</div>

I’m using Pat Shaughnessy’s paperclip

> **[GitHub - patshaughnessy/paperclip: Forked to store files in a database table](https://github.com/patshaughnessy/paperclip)**
>
> Forked to store files in a database table. Contribute to patshaughnessy/paperclip development by creating an account on GitHub.

cause I need to store pictures in database. When I set :storage  
=\> :database in the avatar I get an error when starting server:

C:/Ruby/lib/ruby/gems/1.8/gems/paperclip-2.2.6/lib/Paperclip.rb:301:in  
`[]': Symbol as array index (TypeError)

Had anyone this problem before?

My system:  
Ruby 1.8.7  
Rails 2.3.5  
Hobo 1.0.0  
Paperclip 2.2.6 (Pat Shaughnessy’s)  
Win XP
