Ruby and RoR file extensions

Writing in Flex was a nice experience because it’s so Java-like.   Then I started writing Ruby on Rail apps.

Don’t get me wrong, I definitely appreciate the power that the ruby language and RoR framework provides.   But, face it, if you’re used to Java, the ruby syntax can be …hmmm…. unfamiliar.

My first obstacle was figuring out file extensions:

  • .erb are embedded ruby tags, e.g. <%.  May see an html.erb file.
  • .rb are ruby scripts or RoR class files
  • .rhtml - ruby on rails script (application/x-httpd-eruby)

That’s when I found a helpful site called filext.com which is pretty good for looking up file extensions.

Comments are closed.