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...
on 2007-01-21 10:50
on 2007-01-21 12:48
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 Grosz <rails-mailing-l...@andreas-s.net>
on 2007-01-22 04:18
"Aryk Grosz 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/. Hi Aryk Grosz, 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 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 *****************************************************
on 2007-01-22 18:47
You might find this useful: http://www.huddletogether.com/projects/lightbox2/ -- Building an e-commerce site with Rails? http://www.agilewebdevelopment.com/rails-ecommerce Meet up at RailsConf: http://railsconf2007.conferencemeetup.com/
on 2007-01-22 22:31
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.
on 2007-01-24 19:39
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.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.