This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 104953

Summary: [Rails] Naming Conventions Not Followed on New Files
Product: ruby Reporter: William Leonard <bleonard>
Component: CodeAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description William Leonard 2007-05-28 13:41:13 UTC
Rails expects files to be named in lowercase with underscores, while class names
are mixed case. For example, if I create a new class named CartItem, the
resulting file name should be cart_item. Likewise, if I specify the class name
as cart_item, it should actually appear as CartItem in the class definition,
although the file would be named cart_item. This is exactly how the generators work.
Comment 1 Jiri Kovalsky 2007-07-03 13:58:26 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 2 Torbjorn Norbye 2007-08-10 01:05:08 UTC
This should be fixed now. The New Class (and New Module and New Unit Test) wizard will produce a filename suggestion by
converting the CamelCaseName into a lower_case_word (and both fields are editable in case you want to override the
suggestions).