Amrit Pal Pathak
2012-Feb-12 14:04 UTC
how to show the bigger image after clicking on thumnail ??
How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? is there any gem for it? please help . -- Thanks Regards Amrit Pal amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Javier Quarite
2012-Feb-12 14:18 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? > is there any gem for it? > > please help . > >If I''m not wrong... this may help http://fancybox.net/ or maybe I missunderstood your question Javier Q. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amrit Pal Pathak
2012-Feb-12 15:05 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 7:48 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak > <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? >> is there any gem for it? >> >> please help . >> > > If I''m not wrong... this may help > > http://fancybox.net/ > > or maybe I missunderstood your question >Perhaps. Actually i have number of thumnails on a page and i want when someone click on any thumnail it should show its bigger image without effecting the other thumnails and vice versa. In a simple html file ,its easy to do but in ruby on rails i don''t know how to perform it. -- Thanks Regards Amrit Pal amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
thiagocifani
2012-Feb-12 15:10 UTC
Re: how to show the bigger image after clicking on thumnail ??
I think you can call a link_to method to point to this image in a large size! If you are using paperclip you can call link_to “image_foo“, path_to_original_size“ . Thanks Em 12/02/2012 13:06, "Amrit Pal Pathak" <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> escreveu:> On Sun, Feb 12, 2012 at 7:48 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > > On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak > > <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> > >> How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? > >> is there any gem for it? > >> > >> please help . > >> > > > > If I''m not wrong... this may help > > > > http://fancybox.net/ > > > > or maybe I missunderstood your question > > > Perhaps. > Actually i have number of thumnails on a page and i want when someone > click on any thumnail it should show its bigger image without > effecting the other thumnails and vice versa. > In a simple html file ,its easy to do but in ruby on rails i don''t > know how to perform it. > > -- > Thanks > > Regards > > Amrit Pal > > amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Amrit Pal Pathak
2012-Feb-12 15:13 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 8:40 PM, thiagocifani <cifani.thiago-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I think you can call a link_to method to point to this image in a large > size! If you are using paperclip you can call link_to “image_foo“, > path_to_original_size“ .thanks for the reply.i hope it will help but i am not a rails expert so don''t know how to implement it please can you provide a example or link for that? I will be grateful to you. -- Thanks Regards Amrit Pal amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
radhames brito
2012-Feb-12 15:18 UTC
Re: how to show the bigger image after clicking on thumnail ??
Your question is not rails related since that is done via javascript. Here are some libs for jquery: http://jacklmoore.com/colorbox/ http://lokeshdhakar.com/projects/lightbox2/ -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amrit Pal Pathak
2012-Feb-12 15:24 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 8:48 PM, radhames brito <rbritom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Your question is not rails related since that is done via javascript. Here > are some libs for jquery:But i want to do it in rails.> http://jacklmoore.com/colorbox/ > > http://lokeshdhakar.com/projects/lightbox2/jquery will work in rails''s environment? -- Thanks Regards Amrit Pal amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Javier Quarite
2012-Feb-12 15:27 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 10:24 AM, Amrit Pal Pathak < amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Feb 12, 2012 at 8:48 PM, radhames brito <rbritom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Your question is not rails related since that is done via javascript. > Here > > are some libs for jquery: > But i want to do it in rails. > > http://jacklmoore.com/colorbox/ > > > > http://lokeshdhakar.com/projects/lightbox2/ > jquery will work in rails''s environment?YES! :D That''s why I mentioned fancybox... it''s a javascript way to enlarge images Javier Q -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2012-Feb-12 15:29 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 11:24 AM, Amrit Pal Pathak < amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Feb 12, 2012 at 8:48 PM, radhames brito <rbritom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Your question is not rails related since that is done via javascript. > Here > > are some libs for jquery: > But i want to do it in rails. > > http://jacklmoore.com/colorbox/ > > > > http://lokeshdhakar.com/projects/lightbox2/ > jquery will work in rails''s environment? > >watch this http://railscasts.com/episodes/279-understanding-the-asset-pipeline I think you are a bit confused. Then try to make the right question and i''ll try to help -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Amrit Pal Pathak
2012-Feb-12 15:30 UTC
Re: how to show the bigger image after clicking on thumnail ??
On Sun, Feb 12, 2012 at 8:57 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Sun, Feb 12, 2012 at 10:24 AM, Amrit Pal Pathak > <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> On Sun, Feb 12, 2012 at 8:48 PM, radhames brito <rbritom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Your question is not rails related since that is done via javascript. >> > Here >> > are some libs for jquery: >> But i want to do it in rails. >> > http://jacklmoore.com/colorbox/ >> > >> > http://lokeshdhakar.com/projects/lightbox2/ >> jquery will work in rails''s environment? > > > YES! :D > > That''s why I mentioned fancybox... it''s a javascript way to enlarge imagesok .thank you i will try it. -- Thanks Regards Amrit Pal amritpalpathak.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
radhames brito
2012-Feb-12 15:32 UTC
Re: how to show the bigger image after clicking on thumnail ??
> > > jquery will work in rails''s environment? > >I bit of explanation. Rails handle the server side code, javascript is run on the client side. If you want content in your html to change like a resizing of an imagem the best way to do it is via manipulating it via javascript, rails can be paired with any javascript library. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2012-Feb-12 15:39 UTC
Re: how to show the bigger image after clicking on thumnail ??
On 12 February 2012 15:05, Amrit Pal Pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sun, Feb 12, 2012 at 7:48 PM, Javier Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak >> <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> >>> How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? >>> is there any gem for it? >>> >>> please help . >>> >> >> If I''m not wrong... this may help >> >> http://fancybox.net/ >> >> or maybe I missunderstood your question >> > Perhaps. > Actually i have number of thumnails on a page and i want when someone > click on any thumnail it should show its bigger image without > effecting the other thumnails and vice versa. > In a simple html file ,its easy to do but in ruby on rails i don''t > know how to perform it.In addition to the input from others I just wanted to point out that Rails just generates html and javascript to put on the page. If you know how to do it in html and you are not sure how to do it the Rails way, then just code the view to generate that html. Remember that you can always use View > Page Source (or something similar) in the browser to look at the html that your view file is generating. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.