views:

32

answers:

1

In my code, I have a form with radio buttons. The first radio button is displayed but the second (Repeat Every Week) is not? If I remove the comment markers then it all works fine. But why is it happening?

<!------------>
<%= radio_button_tag 'repeat_daily', 'freq' %>Repeat Every Day<br/>
<!------------>
...some code...
<!----------->
<%= radio_button_tag 'repeat_weekly', 'freq' %>Repeat Every Week<br/>
<!----------->
+3  A: 

Kind of expected, see specification

A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments.

Onkelborg
thanks for that link. I suppose then I should use `=` or something else instead of `-`.
Zabba
+1, I never knew this
Harmen