Aryk Grosz
2007-Jan-21 09:50 UTC
best way to do facebook style photo gallery ? use flash ?
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... -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
augustlilleaas-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Jan-21 11:48 UTC
Re: best way to do facebook style photo gallery ? use flash ?
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...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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... > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
"Aryk Grosz Wrote: "> 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... > > -- > 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 ***************************************************** --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Benjamin Curtis
2007-Jan-22 17:37 UTC
Re: best way to do facebook style photo gallery ? use flash ?
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 Jan 21, 2007, at 1:50 AM, Aryk Grosz wrote:> > 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... > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Aryk Grosz
2007-Jan-22 21:31 UTC
Re: best way to do facebook style photo gallery ? use flash
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can the paginator be used with :per_page => 1 ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Aryk Grosz
2007-Jan-24 18:39 UTC
Re: best way to do facebook style photo gallery ? use flash
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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---