ruby on rails - Link_to with colorbox jquery -


please tell me wrong. view:

<div id='profile_galery'>            <ul>     <li class='big'><%=link_to image_tag(@profile.user.get_avatar(:large) ), @profile.user.get_avatar(:very_large), :class => 'colorbox'%></li> 

and js:

  $(document).on("ready page:change", function() {     $(".colorbox").colorbox(); }); 

but when click on image doesnt show - after page reload works.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -