Auto_link open new window

This code is not opening the link in a new window. Any ideas?

<%= auto_link(@post, :href_options => { :target => ‘_blank’ }) %>

Chris H. wrote:

This code is not opening the link in a new window. Any ideas?

<%= auto_link(@post, :href_options => { :target => ‘_blank’ }) %>

What does the generated HTML look like?

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

normal without the target= “_blank”

On Mon, Oct 5, 2009 at 1:43 PM, Marnen Laibow-Koser <

2009/10/5 Me [email protected]:

This code is not opening the link in a new window. Â Any ideas?

<%= auto_link(@post, :href_options => { :target => ‘_blank’ }) %>

I have seen suggestions that there is an error in the docs for
auto_link and that it should be :html => {} rather than :href_options
=> {}. I cannot vouch for the correctness or otherwise of this
however.

Colin

Ya that worked. Thanks, I should have tried that. DOH!