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 108212 - "new rhtml" file gives bad file name suggestion
Summary: "new rhtml" file gives bad file name suggestion
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-26 19:05 UTC by jamespb
Modified: 2007-08-21 01:20 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 jamespb 2007-06-26 19:05:53 UTC
In the "projects" pane, right click on a folder and choose 'new rhtml file."

The filename suggested is newRhtmlTemplate.  This is a Java-ism; no one would name a RoR file with camelCase.  Change it
to new_rhtml_file.
Comment 1 jamespb 2007-06-26 19:07:14 UTC
And the default contents of the file aren't helpful:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<body>

</body>
</html>

rhtml files are almost always contained in layouts, so putting full HTML in there is almost never going to be useful.
Comment 2 Jiri Kovalsky 2007-07-03 13:57:16 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Torbjorn Norbye 2007-08-10 01:28:40 UTC
I have updates to the RHTML template but it's also a change to the freemarker template system, and I can't check that in
yet (blocked by an issue in the projects module which will hopefully be fixed soon).
Comment 4 Torbjorn Norbye 2007-08-21 01:20:06 UTC
This is fixed now.

IDE:-------------------------------------------------
IDE: [8/20/07 5:18 PM] Committing started
Checking in Bundle.properties;
/cvs/ruby/rhtml/src/org/netbeans/modules/ruby/rhtml/resources/Bundle.properties,v  <--  Bundle.properties
new revision: 1.3; previous revision: 1.2
done
Checking in layer.xml;
/cvs/ruby/rhtml/src/org/netbeans/modules/ruby/rhtml/resources/layer.xml,v  <--  layer.xml
new revision: 1.4; previous revision: 1.3
done
Checking in RailsProject.java;
/cvs/ruby/railsprojects/src/org/netbeans/modules/ruby/railsprojects/RailsProject.java,v  <--  RailsProject.java
new revision: 1.4; previous revision: 1.3
done
IDE: [8/20/07 5:18 PM] Committing finished