When I''m coding my view, I like to comment out blocks of code while testing and fiddling. I''ve found that .rhtml / ERB doesn''t use <!-- comment --> as a block comment, it does translate it when viewed as html, however. Is there a way to comment out blocks of code in ERB so that it doesn''t get processed? Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
matt wrote:> > When I''m coding my view, I like to comment out blocks of code while > testing and fiddling. > > I''ve found that .rhtml / ERB doesn''t use <!-- comment --> as a block > comment, it does translate it when viewed as html, however. > > Is there a way to comment out blocks of code in ERB so that it doesn''t > get processed? > > Thanks, > > Matt<%# ... %> Cheers Mohit --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
But this won''t work if there is embedded Ruby.. It won''t know where to end. It would need an #%> to find the end of the block Matt On Wed, 2006-12-27 at 01:36 +0800, Mohit Sindhwani wrote:> > <%# ... %> > > Cheers > Mohit > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---