On 19 September 2010 17:37, Marnen Laibow-Koser <[email protected]> wrote: > Michael Pavling wrote: >> That won't help him comment his <td> though... > > Of course it will. He can just put the whole <td> construct in an ERb > comment tag. ERb doesn't pay attention to HTML nesting. Or am I > misunderstanding what you're saying?
The original line was: <td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td> so If I changed that to : <%# <td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td> %> I would be squawked at by the parser, or rather, just get an extraneous "</td> %>" in my HTML, because the comment would be closed by the first "%>" Which is why I just tend to cut the the chase, and put an "if false" around the lot. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

