On 17 April 2011 19:43, hanzhao <cx.cheng...@gmail.com> wrote:
> why <% concat(csrf_meta_tag) #aa%> is invalid while <% javascript_include_tag 
> :defaults #abc%> is valid?

What's invalid about it? I assume you get some sort of error
message... can you post that to enlighten us, please?

Personally, though, I find I get problems with Ruby parsing if I
comment in ERB tags after code, instead I tend to do this if I
desperately want to comment in a view:
<% code here %><%# comment here %>

-- 
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-talk@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