search for: text_area_auto_complete_for

Displaying 2 results from an estimated 2 matches for "text_area_auto_complete_for".

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 this which gets the case_manager.id from the case_manager.name that I have already derived from auto_complete and insert it into client.case_manager_id I can'...
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. I need to substitute the value derived from auto_complete above for Thomas E Dewey......