Problem with Rails ERb rendering?

Posted by logan on Stack Overflow See other posts from Stack Overflow or by logan
Published on 2010-03-16T19:30:30Z Indexed on 2010/03/16 19:41 UTC
Read the original article Hit count: 419

Filed under:
|
|

A very simple HTML in my .erb file:

<a href="javascript:void(0)" id="xyz">Click</a>

But when browsing this code in the browser, I get the link which text is:

Click (javascript:void(0)).

Could you please help me explain why it is? Thanks much for your help.

My development environment: Ruby 1.8.7 Rails 2.3.4

© Stack Overflow or respective owner

Related posts about html

Related posts about erb