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 - [Rails] Naming Conventions Not Followed on New Files
Summary: [Rails] Naming Conventions Not Followed on New Files
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 13:41 UTC by William Leonard
Modified: 2007-08-10 01:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).