History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RUBY-595
Type: Bug Bug
Status: Resolved Resolved
Resolution: Obsolete
Priority: Normal Normal
Assignee: Oleg Shpynov
Reporter: Richard McMahon
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Ruby

Incorrect error highlighting in .rhtml file

Created: 06 Jun 07 13:54   Updated: 31 Oct 07 17:26
Component/s: Parsing
Fix Version/s: 1.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: N/A

Build: 4,014
Severity: Low

Sub-Tasks  All   Open   
 Sub-Task Progress: 

 Description  « Hide
I've got some really "fugly" code in one of my views:

<select size="10" name="<%= p %>[]" <%= 'multiple="multiple"' if filter_type.multi_select %>>
<%= options_for_select(filter_type.filters.published.collect {|f| f.name_and_version, "#{f.id}"}, params[p]) %>
</select>

The starts of the second scriptlet (for adding a multiple attribute onto the select) is highlighted as an error, as is the closing select tag.
The view needs to be tidied up, BUT, it is valid syntax I believe.



 All   Comments   Work Log   Change History      Sort Order:
Roman Chernyatchik - 31 Aug 07 22:50
RHTML highlighting was fixed in rev. 10437