Inspection false positive in script section of html.erb
I'm trying to understand what RubyMine is trying to tell me in these two cases:
<script type="text/javascript">
var lines = <%= raw(@lines.to_json()) %>;
</script>
I get an error indicator just before the <% saying "expression expected". Does that mean that RubyMine doesn't handle Ruby insertion inside of the script tag?
Also there is an error on @lines: "Cannot find @lines". How do I get it to find lines? That seems pretty basic.
Please sign in to leave a comment.
Hello Paul,
We already have a request for this: http://youtrack.jetbrains.net/issue/RUBY-6274
Feel free to vote, comment and track progress of it.
Regards,
Oleg