# Best way to do facebook style photo gallery ? use flash?

**URL:** <https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814>\
**Category:** Rails\
**Created:** [January 21, 2007, 10:50am UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814 "2007-01-21T10:50:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 21, 2007, 10:50am UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/1 "2007-01-21T10:50:46Z")

</div>

Hey guys, Im trying to create a photo gallery where photos are listed,  
but when a user clicks in to one, they can click next and previous.

Im trying to do the most efficient way here. Im thinking I need to store  
the entire set of photos so I know where the photo is in relation to the  
other photos in the set so I know the next photo and the previous.

I was thinking of flashing the photo set across the pages, that way I  
dont have to do a database call.

I could put the photos into the session as well, that way I dont have to  
worry about flashing all the time.

Any ideas? Keep in mind that I want to use as little server side  
resources as possible. =)

Thanks in advance…

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 21, 2007, 12:48pm UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/2 "2007-01-21T12:48:51Z")

</div>

class Model \< ARB  
acts\_as\_list  
end

Controller:  
@object = Model.find(params[:id])

View:  
@object.next  
@object.previous

On Jan 21, 10:50 am, Aryk G. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 22, 2007, 4:18am UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/3 "2007-01-22T04:18:48Z")

</div>

"Aryk G. Wrote£º  
"

> I could put the photos into the session as well, that way I dont have to  
> worry about flashing all the time.
> 
> Any ideas? Keep in mind that I want to use as little server side  
> resources as possible. =)
> 
> Thanks in advance…
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Hi Aryk G., you could try to make a picture slideshow with thumbnail  
gallery templates. so that you’ll see the thumbnail the pictures while  
they are playing. Flash SlideShow Builder is a good program for doing  
that. [http://www.flash-slide-show.com/flash-slide-show.php?sid=3](http://www.flash-slide-show.com/flash-slide-show.php?sid=3)  
This software is easy-to-master, and no flash background knowledge is  
required, yet you can still make an excellent flash slideshow with 200+  
transition effects, background music, text caption, etc.  
Hope this would help.

* * *

```
      ---- Color your digital life ---

```

Complete Solutions for You Picture Slideshow  
[http://flashslideshow.blogspot.com](http://flashslideshow.blogspot.com)

* * *

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 22, 2007, 10:31pm UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/4 "2007-01-22T22:31:09Z")

</div>

I tried out the acts\_as\_list plugin and it works great. Thats exactly  
what I had in mind. Makes sense that rails would have plugin for it  
already.

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 22, 2007, 6:47pm UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/5 "2007-01-22T18:47:07Z")

</div>

You might find this useful:

[http://www.huddletogether.com/projects/lightbox2/](http://www.huddletogether.com/projects/lightbox2/)

–  
Building an e-commerce site with Rails?  
[http://www.agilewebdevelopment.com/rails-ecommerce](http://www.agilewebdevelopment.com/rails-ecommerce)

Meet up at RailsConf:  
[http://railsconf2007.conferencemeetup.com/](http://railsconf2007.conferencemeetup.com/)

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 24, 2007, 8:41am UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/6 "2007-01-24T08:41:08Z")

</div>

Can the paginator be used with :per\_page =\> 1 ?

---

<div class="post-metadata">

**Author:** ![ericgoodwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/c68b51/32.png) [@ericgoodwin](https://www.ruby-forum.com/u/ericgoodwin)\
**Post date:** [January 24, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/best-way-to-do-facebook-style-photo-gallery-use-flash/82814/7 "2007-01-24T19:39:55Z")

</div>

well its not as clean, because you would have to be calling the  
paginator on everypage or transfer it between pages via flash, using a  
list is much cleaner, and doesnt require you having to invoke a  
paginator.
