Image Link

Hello,
I was having problems with a link_to... How can I use an image as the
link instead of text? For example:

<%= link_to /images/user_edit.gif, :controller => 'employees', :action
=> 'edit' %>

This doesn't work... I tried a few variations, such as quotes, double
quotes, curly braces, etc... What is the proper way to do this?

Thanks,
- Jeff Miller

try something like:

<%= link_to image_tag('/images/user_edit.gif'), :controller =>
'employees', :action

thanks! That worked perfectly!