ruby and rails use snake case like its style rule , js use this http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#JavaScript_Style_Rules