Displaying 20 results from an estimated 42 matches for "auto_complete_for".
2006 Jul 22
1
(bug) auto_complete_for has no support for umlauts!
i wanted to file a bug in the rubyonrails trac, since trac is currently
broken, i am writing this here. maybe there is a solution allready:
auto_complete_for has no support for umlauts. this i a very big problem
for non-english developers out there, since almost everything searched
for contains umlauts.
* searching by umlauts is not possible
* displaying of the found entries is screwed
see also
http://lists.rubyonrails.org/pipermail/rails/2006-April...
2006 Jul 27
1
auto_complete_for method not found error
Hey guys,
I have the newest installed Ruby Gems 1.4. I can''t run the scriptaculous
auto complete because it cant find auto_complete_for method.
However, I have the auto_complete.rb file in my Rails directory and it
has the method inside. Why is not found?
--
Posted via http://www.ruby-forum.com/.
2006 Nov 04
1
role based auth breaks auto_complete_for
Hi there
I bought the rails recipes book, and I implmented the role based auth,
but that breaks my auto_complete_for, I added it to the right table ,
but no luck,
any tips would be apreciated
Thanks in advance
2006 Jul 28
7
auto_complete_for exists but not being found by Rails
Anybody encounter this. I know the method exists in the auto_complete.rb
file in my rails installation, but it itsnt accessing it throught he
program.
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 28
1
referencing a table
I am trying to use auto_complete_for to reference a different table.
in my clients_controller.rb file
auto_complete_for :case_manager :case_manager.name
^^^^^^^^^^^^
this is not the clients table
my models/clients.rb has:
has_one: case_manager
The above '...
2005 Aug 18
1
Auto Complete, works as adverrtised?
I''m trying to use the auto complete now and I get:
undefined method `auto_complete_for'' for #<ProductsController:0x40a44338>
My code is:
def auto
auto_complete_for :product, :title
end
Just like in the "view source" div from the demo. Well, almost like it. Am I
missing .rb library somewhere?
thanks
Jacob
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system.
I see that when I use <%= javascript_include_tag "defaults" %>
that when used, the webrick reports
GET /javascripts/prototype.js
GET /javascripts/dragdrop.js
GET /javascripts/effects.js
GET /javascripts/controls.js
but on the system that I am t...
2006 Feb 26
2
auto_complete on steroids
I am trying to get more out of auto_complete than it apparently was
designed to deliver.
My problems seem to be two fold.
1 - I use aggregations on
names... :first_name, :middle_initial, :last_name and then aggregate
them using a composed_of :wholename thing
auto_complete_for seems to be wired to only use table columns directly
and gags on the aggregate form.
2 - foreign table columns - auto_complete_for seems to be unusable for
obtaining matching values from a column in another table but I haven''t
fully explored this since I was trying to get the aggregation...
2006 Apr 11
4
text_field_auto_complete not working in IE?
...39;find'') %>
<p>City <%= text_field_with_auto_complete :house, :city, :size => 20
%></p>
<p>Zip <%= text_field_with_auto_complete :house, :zip, :size => 10
%></p>
<%= end_form_tag %>
My controller contains the relevant declarations:
auto_complete_for :house, :city
auto_complete_for :house, :zip
I''ve included the default Javascripts in my layout and everything seems
in order. I haven''t overwritten any of the generated CSS or Javascript
anywhere.
If anyone has any ideas how this works, I''d be grateful.
Thanks!
Je...
2006 Jun 19
10
text_field_with_auto_complete doesn|t work in edit/show view
Hi,
I am using the autocomplete for text field with ''Scriptaculous'' and it
works perfectly fine in "new" action.
All the examples I see are only for the "new" action.
But doesn''t default to the selected value/text in "edit/show" action? Is
this possible or should I write custom code for "edit/show" action?
Thanks, Hari
--
2006 Jan 11
0
Easy Question, I Think
...%></p>
<p><label for="part_comment">Comment</label><br/>
<%= text_field_with_auto_complete :part, :comment %>
<!--[eoform:part]-->
-------------------Controller---------------------------
class PartsController < ApplicationController
auto_complete_for :part, :comment
auto_complete_for :part_number, :part_number
auto_complete_for :part_name, :part_name
def index
list
render :action => ''list''
end
def list
@part_pages, @parts = paginate :parts, :order => "part_name_id",
:per_page => 10...
2006 May 23
2
auto_complete_field help
...redit_list">
<li id="credit_<%= @credit_number %>">
<%= text_field_tag("#{@credit_number}creator", nil, {:size =>
''15''}) %>
<%= auto_complete_field("#{@credit_number}creator", :url =>
{:action => "auto_complete_for_author_name"}, :with => "#
{@credit_number}creator") %>
<%= link_to_remote("Add", :url => {:controller => "book", :action
=> "ajax_add_credit_to_form", :credit_number => (@credit_number +
1)}) %>
</li>
</ul...
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
...%></p>
<p><label for="part_comment">Comment</label><br/>
<%= text_field_with_auto_complete :part, :comment %>
<!--[eoform:part]-->
-------------------Controller---------------------------
class PartsController < ApplicationController
auto_complete_for :part, :comment
auto_complete_for :part_number, :part_number
auto_complete_for :part_name, :part_name
def index
list
render :action => ''list''
end
def list
@part_pages, @parts = paginate :parts, :order => "part_name_id",
:per_page => 10...
2006 Oct 23
10
text_field_with_auto_complete
Hi,all
I''ve used text_field_with_auto_complete for a while but still haven''t
figured out how to store the value that I selected from the suggested
options. any hints?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Jul 14
1
auto completion with composite field
How can auto completion be done for a composite field ?
Concrete problem : Suppose the class Person with reference to a City
object.
The City has a name and a postal code.
When entering a Person I want to enter the city in one text field that
shows a composition of the city name and the postal :
"city (postal)". And this with auto complete (and should afterwards be
linked to the
2006 Jun 27
1
Scriptaculous Problem
Hi!
I am using the auto complete feature provided by Scriptaculous in an
Rails application.Here
is have to write following string in the view:
Select name:
<%= text_field_with_auto_complete :contact, :name %>
and i have to write following write in the controller:
auto_complete_for :contact, :name
But after putting in this code it does''nt work. I knw that i hve to
create a database but hw to mention it in the code? Is the :contact
mentioned above is the model corresponding to database name contacts?
Interestingly it shows no error.
Regards,
Swanand.
-------------...
2006 Feb 24
1
Autocompleter Problems
...w is as follows:
<%= text_field_with_auto_complete(:partner, :name,{:size=>10}) %>
which produces the javascript:
//<![CDATA[
var partner_name_auto_completer = new Ajax.Autocompleter(''partner_name'',
''partner_name_auto_complete'', ''/partners/auto_complete_for_partner_name'',
{})
//]]>
And in my controller:
class PartnersController < ApplicationController
layout "default"
auto_complete_for :partner, :name, :limit=>10
def index
@title = "Partners"
list
render :action => ''list''...
2009 Jun 18
1
undefined method `text_field_with_auto_complete'
...39;' ", than i try this
in script/console
helper.methods
i check the list and "text_field_with_auto_complete" can''t be found,
so i try
helper.extend(AutoCompleteMacrosHelper)
than it shows in the helper.methods list
but i don''t know how to fix this problem
btw: auto_complete_for is in ActionController::Base.methods, i guess
it must have something to do with second line in the init.rb, since
first line get his jod done
/auto_complete/init.rb
ActionController::Base.send :include, AutoComplete
ActionController::Base.helper AutoCompleteMacrosHelper
could any body kindly tell...
2006 Jan 30
1
auto_complete_with_index_for
...ms/actionpack-1.11.2/lib/action_view/helpers/java_script_macros_helper.rb
and hacked it, putting the result in
app/helpers/application_helper.rb
as text_field_with_index_auto_complete. All it does differently is
not output the index in the name of the method to be called.
I copied the code for auto_complete_for out of
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/macros/auto_complete.rb
and pasted it right back in as auto_complete_with_index_for. It just
ignores the index in the parameter. Everything else is the same.
I will probably submit a bug report and a patch eventua...
2006 Jun 02
5
scriptaculous autocompletion LIMIT and ajax vs. local
Hi,
I am using scriptaculous ajax autocompletion (not local autocompletion).
I have 2 questions:
1 - The database query being sent to the server always has LIMIT 10. I
don''t want to have a limit, but I just can''t for the life of me find
where this limit is set in the code. I did see "choices: 10" in
controls.js but that''s for autocompleter.Local, which I