Details
Description
{html}<div><p>When I use the Source -> Format command I'm getting an error
in the editor on really simple views.</p>
<pre>
<code>Code formatter error (parsing) - Ruby parser error</code>
</pre>
<p>This seems to happen in any file where there is a block...
example:</p>
<pre>
<code><%= div_for contact, :class => 'record' do %>
<%= link_to(contact.name, admin_contact_path(contact)) %>
<% end %></code>
</pre>
<p>I think this error has cropped up recently (since 3.0.1) but I'm
not sure the editor ever formatted blocks like this correctly</p></div>{html}
in the editor on really simple views.</p>
<pre>
<code>Code formatter error (parsing) - Ruby parser error</code>
</pre>
<p>This seems to happen in any file where there is a block...
example:</p>
<pre>
<code><%= div_for contact, :class => 'record' do %>
<%= link_to(contact.name, admin_contact_path(contact)) %>
<% end %></code>
</pre>
<p>I think this error has cropped up recently (since 3.0.1) but I'm
not sure the editor ever formatted blocks like this correctly</p></div>{html}
Attachments
Issue Links
- is duplicated by
-
APSTUD-1821 Code Formatter -Indentation for blocks in ERB does not work
-
- Closed
-