Oops sorry, <%= begin %><% end %> doesn't work in normal rails too.
I had to present a block one:

  <%= [0, 1, 2].map do |i| %>
  <%   "[#{i}]" %>
  <% end.join %>

This code works in

  - html.erb in rails 3 as well as hobo 1.3

but won't work in

  - html.erb in hobo 1.2
  - dryml in hobo 1.2 and hobo 1.3

Rails3's form helpers are designed to use it.

Interestingly plain erubis (an ERB implementation used in Rails 3)
rejects the unclosed block.  Maybe rails3 has special treatment about
it?

-----
Tomoaki Hayasaka <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to