link_to and image_tag

sorry for the basic question, trying to do this...

<%= link_to (image_tag picture.photo.url(:thumb)), (image_tag
picture.photo.url) %>

Anyone help me fix the syntax?

bb

<%= link_to(image_tag(picture.photo.url(:thumb)), picture.photo.url)
%>

- BD
http://www.buddingrubyist.com
http://www.fiveruns.com

Brian Dainton wrote:

<%= link_to(image_tag(picture.photo.url(:thumb)), picture.photo.url)
%>

- BD
http://www.buddingrubyist.com
http://www.fiveruns.com

On Apr 26, 6:29´┐Żam, bingo bob <rails-mailing-l...@andreas-s.net>

Many thanks. works a treat. Don't know why i was making it so
complicated!