similar to: auto_complete with 2 related tables

Displaying 20 results from an estimated 30000 matches similar to: "auto_complete with 2 related tables"

2006 Jan 30
5
Lookup from related tables
I have been working on this for 3 days and haven''t been able to solve it. I have 2 tables... clients belongs_to: case_managers case_managers has_many: clients When entering new clients, I need to have some type of select box that allows me to pick the case_manager (by name) so that the ''id'' field from the case_manager table is inserted into clients.case_manager_id
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 Feb 21
8
Validations continued
I simply can''t figure this out. I have been reading and re-reading Agile book and wiki.rubyonrails.org - all sorts of validation methods and still, it doesn''t work. Controller code def create @client = Client.new(params[:client]) if @client.save! flash[:notice] = ''Client was successfully created.'' redirect_to :action =>
2006 Feb 21
3
controller subroutines
Trying to find this documented in the Agile book and don''t see an appropriate example so I am confused. I have a method in my controller... def performfind myfind = ["Select * from clients where ..."] even more...complicated find here end and within the controller, I want to use the ''myfind'' string How do I get the string back from the method
2006 Feb 07
7
select list error - following Agile guide
I would swear that I am tracking exactly the method used in Agile book... TypeError in Placements#edit Showing app/views/placements/_form.rhtml where line #33 raised: wrong argument type String (expected Module) Extracted source (around line #33): 30: <tr> 31: <td><label for "type">Type</label></br><%= 32: options = [["Select
2006 Feb 08
2
helpers and plugins
First a helper... Have a boolean field - on forms, it returns ''true'' or ''false'' It would be much nicer to have it say either ''yes'' or ''no'' is there a helper for this? Where do I find a list of helpers beyond Agile book? Secondly, plugins... I know that I am going to have to look at authentication mechanisms and
2006 Jan 25
2
select list generated from table
Have 2 tables - clients & case_managers class Client < ActiveRecord::Base has_one :case_manager end app/views/clients/_form.html contains line... <p><% collection_select("client", "case_manager_id", \ case_manager.find_all, "name", "id") %></p> and this line generates error... undefined local variable or method
2006 Jan 25
7
join fields for list views
I am sitting with the Agile book on my desk and scratching my head at the discussion on aggregation - perhaps that isn''t what I need. I have a db called clients. fields include - first_name middle_initial last_name I want to combine them all into one name element in a list view. I can add/edit the fields separately but in the list view, I only want the one combo field. Is there a
2006 May 26
0
Seeking complete example/plugin of simple usage of Lookup (auto_complete) for making associations on models
I think the second most useful usage of the auto_complete is for editing relations (associations). I''ve searched for almost a week on all RoR resources but I didn''t found any solution to this problem. Instead I''ve discovered that there are many looking for this. I think that this problem must be clearly solved and the clear how-to should published on one-more RoR
2006 Jan 28
1
finishing a lookup value
I have a form...2 tables and using auto_complete table clients id case_manager_id foreign key case_manager_id to case_manager(id) table case_manager id name my app/views/clients/_form.rhtml includes which works (finally!) <%= text_area_auto_complete_for :case_manager :name %> and now in clients_controller.rb def create @client = Client.new(params[:client]) I need to add a line to
2010 Mar 19
2
auto_complete plugin on rails 2.3.5
Hi, this is my first post. I have run: $ ruby script/plugin -v install auto_complete but the result is: Plugin not found: ["auto_complete"] #<Errno::ENOENT: No such file or directory - /dev/null> I have also try to run: $ ruby script/plugin -v list and the result is: Discovering plugins in http://dev.rubyonrails.com/svn/rails/plugins/ /CHANGELOG /account_location/
2008 Dec 25
5
Plugin auto_complete
Hi all ! I began to develop Rails applications with Aptana Radrails under Windows. For that I had successfully installed auto_complete plugin and succeeded to use it. Now I have an iMac and I''m trying to restart my developments under OS X. My problem is: when I run the command ''script/plugin install auto_complete'', the result is: Plugin not found:
2006 May 04
1
auto_complete works sometimes...
Hello All: I have set up an auto_complete search field within my application controller and application layout so that it is available to all pages in my app. I have run into a snag with this in two projects I am working on where it won''t work on one particular page related to a specific controller. I get a No Method error on the column name referenced in the auto_complete
2007 Oct 09
0
auto_complete :on_show :on_hide
Hi, Trying to use the auto_complete options of :on_show and :on_hide.... ......, :on_hide => "function(element, update) {allow_change_control(true);} " but when I do this it runs my js function but the div doesn''t hide. I would like the auto_complete to work normally and just run a js function which sets a js variable. Any suggestions Thanks
2006 Mar 12
0
undefined method and auto_complete
pulling my hair out on this because I don''t understand... I have 2 methods/actions in the same ''placements'' controller that I am concerned with... find, works properly... view code from find.rhtml <td><p><label>Client</label><br/> <%= text_field_with_auto_complete :placement, :clwholename, {} %> </p> </td>
2006 Jan 29
1
returned values and consequent usage
I think I can have finally reduced my problem to something somebody can help me with. I am using auto_complete... specifically the form command is... <%= text_area_auto_complete_for :case_manager :name %> I need to use the value derived here in my controller... If I use... cm = CaseManager.find(:first, :conditions => "name = ''Thomas E Dewey''") it works.
2006 Feb 27
2
Ajax - from there to here
Trying to use Amy Hoy''s ajaxariffic auto_complete methodology and I am getting really close to the end. This is fairly complicated but I will simplify as best I can. My view code is simple... <%= text_field_with_auto_complete ''client'', ''wholename'' %> # wholename is not a column in ''clients'' but rather represents an
2006 Feb 11
1
auto_complete
hi guys I am trying to work the AJAX text_field auto_complete and I was wondering if someone can show me a sample code of how it works thanks I really appreciate it -- Posted via http://www.ruby-forum.com/.
2006 Jun 21
3
Is this a weird bug with auto_complete?
I think I may have found a bug with the auto_complete feature in rails: My controller has a before_filter with an except clause preventing the filter from running on a specific action. The action renders a view with a text_field_with_auto_complete field. Much to my suprise, the filter appears to run when I type data into this field! The filter is part of my security regime, so I end up with a
2006 May 18
0
auto_complete when tab pressed problem
Hi, This is probably as much a script.aculo.us issue as much as a Rails one. The default behaviour of the AJAX auto_complete control seems to be to select the first match from the list when tab is pressed. Is there a way to configure the control to leave the typed text unchanged when the user types tab and just move the focus to the next control in the form? Thanks, Geoff -- Posted via