Multiple Root Errors in xml.erb files

I have a RoR project where I am generating xml files using erb. Top level xml.erb files render partials. My problem is that RubyMine is complaining that the partials have multiple root tags. However, since they are partials and not the main document, they are not actually root elements. Here is an example of what I am seeing, remember that this is a partial being rendered inside of another xml.erb file so <Cell> is not truly the root level tag.

Screen Shot 2013-11-07 at 9.20.18 AM.png

In addition to the all the red being annoying, features like autocomplete stop working since the file is seen as invalid.

Is there something I can do to make RubyMine see this a valid file?

Please sign in to leave a comment.