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 122195 - syntax error happens in RHTML
Summary: syntax error happens in RHTML
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-17 04:17 UTC by Masaki Katakai
Modified: 2008-03-31 00:23 UTC (History)
2 users (show)

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 Masaki Katakai 2007-11-17 04:17:01 UTC
Product Version: NetBeans IDE Dev (Build 200711161200)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)

I'm not sure if this is the same as bug 121229, but here is the code. 
A Ja community member is complaining that error should not happen.

---
<% form_for :document, @document,
  :url => { :action => 'update', :id => @document } do %>
<% if @revision %><%= hidden_field_tag :revision, @revision %><% end %>
<%= submit_tag 'Save' %>
<% end %>
---

There will be no error when I changed to the following,
--
<% form_for :document, @document,
  :url => { :action => 'update', :id => @document } do %>
<% if @revision %>
<%= hidden_field_tag :revision, @revision %>
<% end %>
<%= submit_tag 'Save' %>
<% end %>
--

When I entered Return just after "<% if @revision %>",
unexpected "end" was inserted, like

--
<% form_for :document, @document,
  :url => { :action => 'update', :id => @document } do %>
<% if @revision %>
  <%= hidden_field_tag :revision, @revision %><% end %>
end
<%= submit_tag 'Save' %>
<% end %>
--
Comment 1 Petr Jiricka 2008-03-31 00:23:44 UTC
Can not reproduce any more in the latest 6.1 build, so I consider this fixed.