# Moving of Photos

**URL:** <https://www.ruby-forum.com/t/moving-of-photos/181993>\
**Category:** Rails\
**Created:** [January 21, 2010, 7:15am UTC](https://www.ruby-forum.com/t/moving-of-photos/181993 "2010-01-21T07:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rails\_ROR](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9f8e36/32.png) [@Rails\_ROR](https://www.ruby-forum.com/u/Rails_ROR)\
**Post date:** [January 21, 2010, 7:15am UTC](https://www.ruby-forum.com/t/moving-of-photos/181993/1 "2010-01-21T07:15:14Z")

</div>

Hi,

I would like to take your suggestion on the following problem:

I have a scaffold called Manage where i have fields like title, short  
description, long description,keywords, tags.

I created few record pages like “Services”,“About Us”,“Gallery”,“News”

I should display Photo Upload( Paperclip code) only in the Gallery Page  
and  
no where else which i could do this using has\_photos (boolean)

After Uploading a photo, i have a combo box in which i will display all  
the  
Manage records like Services, About Us, News…

When i choose a particular item like Services, then the photo that i  
uploaded must be automatically moved to Services from Gallery.

When i choose About us then the photo must be moved to that item. The  
uploaded photo must be there at only one item.

Manages is my table with the following fields:

title  
short\_description  
long\_description  
keywords  
tags  
is\_enabled  
has\_photos

Please suggest me in achieving this.

Looking forward for your reply.
