File Type

Asked by Timofey Sitnikov on 2010-12-29

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

Language:
English Edit question
Status:
Solved
For:
Scribes Edit question
Assignee:
No assignee Edit question
Solved by:
Timofey Sitnikov
Solved:
2010-12-30
Last query:
2010-12-30
Last reply:
Mystilleef (mystilleef) said : #1

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

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.