0

Komodo Edit (6.1) is, for the most part, a treat to use for editing Ruby on Rails code. However, it is lacking when it comes to .erb files. There appears to be absolutely no code intelligence or completion for <% %> or <%= %>. I know about the Ruby on Rails extension for Komodo, but unfortunately it is out of date. Does anyone know of how I can make Komodo Edit a bit smarter when it comes to .erb files?

4

1 回答 1

0

一般来说,Ruby 代码完成的问题是目前 Komodo 没有为块参数分配类型。例如,如果您在“<%”之后键入“for”,您应该会看到以“for”开头的术语列表。假设您选择“form_for”,并最终输入

<% form_for(@item) 做 |f| %>

<%= f.[|]

其中“[|]”标记光标位置。

此时,Komodo(仍然)没有变量 f 的类型,因此它在“。”之后不提供任何属性或方法名称。

于 2012-02-13T22:55:48.890 回答