.erb files have wrong auto formatting for variables

Hi folks,

i have a new project with puppet (activated the puppet plugin from jetbrains) and some .erb files. Now i was going to check all the given things into a gitlab repo. And as always i reformat the whole code. So far so good.

But in .erb files my variables get shot. For example i have

command[check_foobar]= <%= @NAGIOSPluginsBase -%>/check_foobar

when i reformate it gets to

command[check_foobar]= < % = @NAGIOSPluginsBase - % >/check_foobar

and won't be recorgnized.

Why is this happening, why does it crash the variables. Have found many things regarding .erb files in RubyMine but no real solution for me.

 

Thanks in advance!

0
1 comment

Are you using PhpStorm? What type have you assigned for .erb files in File | Settings | Editor | File Types?

0

Please sign in to leave a comment.