Ruby File Template changes not honored?
I wanted my Ruby files to have this standard header:
/usr/bin/env ruby.
I add it here:
Settings->File Templates->Includes->Ruby File Header and can see it in that dialog. Click OK.
In Project View -> Alt+Insert->New File->foo.rb
But foo.rb does not get the configured header. What am I missing?
Regards,
Kedar
Please sign in to leave a comment.
There's more to it.
After creating the template for a Ruby file this way, I stumbled on yet another bug.
So, this is not working as expected :(
Hello Kedar,
I've created an issue for this: http://youtrack.jetbrains.net/issue/RUBY-7332
Feel free to vote, comment and get notified once it is fixed.
Regards,
Oleg
To make it work properly just add the linefeed to the end of Ruby File Header Template.
Regards,
Oleg