<%= link_to_image "/images/thumbs/#{@model.art}.jpg",
"/images/big/#{@model.art}.jpg", {"alt" => "Picture
of model
#{@model.art}", "title" => "Click to see a bigger
picture", "class" =>
"model"} %>
Html attributes must be enclosed in curly brackets, since they''re a
single attribute (a hash).
//jarkko
On 21.2.2005, at 20:55, John McCreesh wrote:
> Can someone please give me an example of specifying alt with
> link_to_image? No matter what I do, Rails ignores it ... must be doing
> something really dumb.
>
> Thanks - John
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Jarkko Laine
http://jlaine.net
http://odesign.fi
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails