Ruby on rails

Hi,

I have a view page where I have list of images and when the image is
clicked it should go to the corresponding listing view page of images of
that particular id.

<%=
image_tag(attr[:url],:height=>‘331px’,:width=>‘608px;’) %>

Is this correct?? I am not posting the complete code. But I am getting
the id in the view page. So only thing i need to do is to link the url
to that image listing. Please help.

ruby on rails != ruby