Ezra Z. wrote:
On Jul 21, 2006, at 1:32 AM, Ola B. wrote:
Hey Ola-
Yes please make a plugin. I would find it useful.
Cheers-
-Ezra
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
Hi, ok, I’ve made a plugin of this, but there is NO documentation yet. I
will make some kind of proper announcement when I’ve done that.
The svn is http://svn.ki.se/rails/plugins/in_place_completer
And you use it by adding this to your head:
<%= javascript_include_tag :defaults %>
<%= in_place_completer_include %>
There is only a helper for the local-completion right now, but the other
will come very soon. The Ajax component is there, though. An example
of using the local completing editor can look like this:
<%= in_place_local_completing_editor_field :person, :name, %w(Ola Ezra
Gedas Steve) %>
Where the params are:
object_name, field_name, completions, tag_options, editor_options,
completer_options
where completions should be an array of values, tag_options are the same
as tag_options for in_place_editor_field, editor_options accept the same
as in_place_editor_field and completer_options the same as
text_field_with_auto_complete.
Enjoy
Ola B. (http://ola-bini.blogspot.com)
JvYAML, RbYAML, JRuby and Jatha contributor
System Developer, Karolinska Institutet (http://www.ki.se)
OLogix Consulting (http://www.ologix.com)
“Yields falsehood when quined” yields falsehood when quined.