Displaying 20 results from an estimated 100 matches similar to: "auto_complete_for exists but not being found by Rails"
2012 Mar 09
2
ActionMailer message delivery content
I have the ability to send email to a user if a certain user has
requested interest in their product. In my email I want to include
certain information that is pulled from users but at the moment I am
getting errors because it states that they are undefined despite these
lines being used elsewhere in my application. I shall copy the email
below and anything between the <% %> is what I wish
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 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
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 Dec 13
6
triggering a query within a loop
Any help with this would be very appreciated, I''m completely new to
rails. I''m building an application that''s looking to do the following:
First off i''m trying to convert my site from ColdFusion to RoR, this is
the site: http://www.walkenclips.com/
It''s one page that basically does this:
Query the db to get a list of movies (movies table)
Loop
2006 Apr 09
6
Write/Display AR query as Grouped Results?
I''ve got a publications table that contains an author_id foreign key and
a pubrole_id foreign key. What I want to do is query the DB using AR so
that I can get a list of all publications that belong_to a particular
author, and group the results by the pubrole.role_name (Author, Joint
Author, Editor, etc.) so that the results look something like:
Author
book1 info
book2 info
etc.
2006 Oct 13
5
multi_search error undefined method
Hi,
Im having problems using the multi_search command. I keep getting the
following error.
"undefined method `<<'' for Book:Class"
here is the code associated with this.
class Book < ActiveRecord::Base
acts_as_ferret :store_class_name => true
end
class User < ActiveRecord::Base
acts_as_ferret :store_class_name => true
end
and the call is the
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 ''auto_complete_for'' line in clients_controller.rb
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 trying to develop on and doing similarly,
the webrick only reports
2006 Aug 02
3
newbie question, adding conditions to collection of sql objs
I have:
@pictures=@c.pictures
How do I add limit and order_by conditions. I have tried the following:
@c.pictures.find_all(:limit=>5)
@c.pictures, :limit=>5
@c.pictures :limit=>5
None of these work.
--
Posted via http://www.ruby-forum.com/.
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 -
2006 Jul 28
3
render :update working incorrectly
I have the following code
render :update do |page|
page.alert(''Hey there'')
end
Why is it taking me to a blank page with the following text at the top:
alert("Hey there");
This text is in <pre> tags as well. Its kinda weird. Thats what I want
to execute on the page that it came from. Any ideas?
This happens with the other commands where it renders the
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all,
I''m looking for some insight on why my text_field_with_auto_complete
might not work in Internet Explorer. I''m using it in a fairly simple
way, without much customization.
I''ve broken it down and made a test page at
http://realty.colemanation.org/houses/test which shows the behavior I''m
having problems with. For me on Windows XP this page works
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
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2006 May 23
2
auto_complete_field help
Not sure what I am doing wrong. Here is what i am trying to do (code
to follow).
I have a form to create a new book. This book can have many authors
and I wanted to be able to add the authors based on if they appear in
the authors table. I originally was going about it a long and arduous
way where I had several forms. After thinking about it I decided to
dynamically add new fields to
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
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