Michael Pavling wrote:
> On 19 September 2010 17:37, Marnen Laibow-Koser <li...@ruby-forum.com> 
> 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.

Ah, yes.  Hadn't thought about the extra %>.  Duh.  I should have read 
more carefully; sorry.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

Sent from my iPhone
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to