File Type

Asked by Timofey Sitnikov

When I open an rb file, which is Ruby file, the Scribes thinks it is RubyOnRails file, how can I make it think that it is ruby?

Question information

English Edit question
Scribes Edit question
No assignee Edit question
Solved by:
Timofey Sitnikov
Last query:
Last reply:
Revision history for this message
Mystilleef (mystilleef) said :

What's the difference between a Ruby file and RubyOnRails file?

Revision history for this message
Timofey Sitnikov (timofey-sitnikov) said :

RubyOnRails is a mix of HTML and ruby language. Ruby files are pure Ruby scripting language with .rb extension, but ruby on rails have .html.erb eoxtension. The .erb extension stands for embedded ruby. Actually I solved the problem. I had to go to mime and remove .rb extension from the RobyOnRails mime.