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
Avi
2
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
its very easy to use.
Matt