On 13-jul-2005, at 18:29, François Beausoleil wrote:
> Hi !
>
> I have the following in my navigation area:
> <%= link_to_unless_current image_tag(''events.gif'',
:height => 34,
> :alt => ''Events''), :controller =>
''events'' %>
>
> Works nice untill I am on the events page, in which case the
> generated code looks like:
> <img alt="Programs" height="34"
src="/
> images/programs.gif" />
>
> So, if the link''s text is escaped when we are current, why is it
> not escaped when it''s not current ? Should this be considered a
> bug ? Should I file a patch for this ?
>
> This is on Rails 0.12.1.
This one bit me too - never bothered to file a bug though
--
Julian "Julik" Tarkhanov