Ruby on Rails
Wednesday, June 5, 2013
Are you looking to open that link in a new tab? if so us :target => "_blank"… or are you looking for a lightbox style thing? If so checkout http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ its very easy to use.
Matt
On Jun 5, 2013, at 10:39 AM, Avi <aavinash.behera@gmail.com> wrote:
Hello All,How can I add a popup in link_to image_tag?I am trying as :-<%= link_to image_tag(@user.avatar.url(:small)), '/users/edit', :popup=>['original_image', 'height=700,width=900'] %>It goes to the edit page. But it doesn't opens popup.Is this the correct way to call a popup?How can I achieve this?Thanks,Avinash--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/072470f7-d646-415e-900d-b58568c37311%40googlegroups.com?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment