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

Key: RUBY-797
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Roman Chernyatchik
Reporter: Roman Chernyatchik
Votes: 0
Watchers: 0
Operations

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

RHTML: Expression rhtml tag can't contain not expressions.

Created: 01 Aug 07 18:27   Updated: 07 Jun 08 16:50
Component/s: RHTML
Fix Version/s: 2.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
RHTML: Expression rhtml tag can't contain not expressions.
<%= while 5 do %>
   <i> Hi! </i>
<%=  end %>


 All   Comments   Work Log   Change History      Sort Order:
Michael Klishin - 07 Sep 07 21:36
While "while 5" doesn't make sense because it causes an infinite loop, these Erb blocks (right name for this <% %> stuff) may contain HTML. Could you explain what restriction are you going to add?

Roman Chernyatchik - 10 Nov 07 19:59
It means, that Expression Erb blocks (<%= .. %>) must contain correct ruby expressions. E.g. <%= 3.times do %> isn't correct, but <%= 3 + 5 %> is ok.