similar to: pass extra value through text_field_with_auto_complete?

Displaying 20 results from an estimated 400 matches similar to: "pass extra value through text_field_with_auto_complete?"

2013 Nov 08
2
Export CSV
Hi friends, i am using csv export on my application. in my view file code is <%- headers = ["Transaction ID", "Activity ID", "Product Name","Customer Name", "Ticket code"] -%> <%= CSV.generate_line(headers).strip %> <%if !@trans.nil? && @trans.length > 0 %> <% @trans.each do |tran|%> <% if
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 09
7
Large select list, speed issues
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> <font size="-1"><font face="Verdana">I have a piece of code in my page to generate
2006 Feb 27
0
auto_complete_field Vs text_field_with_auto_complete
Hi, I want to know which of the two methods, auto_complete_field and text_field_with_auto_complete best suits what I am trying to do. I have a model class called search (which doen''t extend ActiveRecord) which holds two parameters, category_string and postcode_string. I want my form to bind its values to these to values. I also want the category input to be an auto complete field
2010 Dec 21
1
Matching 2 SQL tables
Hi, I have a postgresql and a mysql database and I would like to combine the info from two different tables in R. Both databases contain a table with three columns: project_name, release_id and release_date. So each project output could be released multiple times (I am interested in the first release_date). However, some of the data is missing. Basically, what I want to do is to try and fill the
2005 Dec 20
1
Can''t use mouseover with auto_complete_field
Good afertnoon. I''m trying to use a mouse over event: Event.observe("name_auto_complete", "mouseover", function(){alert("auto_complete")} ); with the auto_complete_field bellow. <%= text_field_tag("name") %> <%= content_tag("div", "", "id" => "name_auto_complete") %> <%=
2005 Dec 21
1
How do you use :on_hide in auto_complete_field?
I''m trying to get some auto_complete_field stuff going, and I have them working for the most part, but I can''t quite get how the :on_hide option works. I''m hoping that I can populate a hidden field with the id of the chosen record with it...is that going to be possible? Thanks for your help. -- Posted via http://www.ruby-forum.com/.
2006 Feb 12
4
How do I emulate directory structure with routes?
I''ve got something that I''m not sure is actually doable. I have a very complex model relationship with a lot of parent/child/grandchild/ greatgrandchild etc stuff going on. Is there a way to do a route like this? tld.com/ projects/:project_name/:sequence_acronym/:shot_number/:department/:eleme nt_name/:version/ where: project is the parent of sequence sequence is the
2005 Jun 29
3
Setting the value of a primary key field
I have a table that is to hold all ISO 639 language codes: alpha3t, alpha3b, alpha2, that bunch. It also (indirectly) holds language names, but that''s off-topic. alpha3t is the primary key, so I''ve told Active Record about this by saying set_primary_key "alpha3t" within the Language model. (Don''t try to call your models things like ISO639 (won''t work
2005 Jun 24
14
apache2 fastcgi (fcgi) internal server errors, still :(
hi all, I can blab, but here is a sample of my /var/log/apache2/error.log, it has all the info: any ideas what I can do prevent 500s from hitting my users? (besides redirecting them with javascript to the same URL which will be fine on the next request? :) thanks, _alex [Fri Jun 24 12:30:45 2005] [error] [client 172.20.0.175] FastCGI: incomplete headers (0 bytes) received from
2011 Mar 21
1
Getting user session object in cucumber
Hi, I am learning cucumber. I have integrated the Devise with my rails 3 application. My problem is I have to write a test which will create a project. For that I have to make sure that user should be logged in. So I have written the user login feature first which is working fine. After that I have written the creation of project scenario. Whenever I am running that scenario we are getting an
2005 Jul 11
0
accessing an alternate controller from text_field_with_auto_complete
Afternoon, I''m attempting to add a "tag" auto complete text field to my Movies ''edit'' view. :controller => ''movies'', :action => ''edit'', id => 39 > I''d like add tags to this movie, and I''d like to draw from existing tags in the database to avoid small typos or something. However, the
2007 Aug 08
1
autocomplete field in ajax response html - css does not get applied.
Hi all, I have a page in which a div is updated with some html via Ajax. The returned html contains an autocomplete field. The autocomplete field works but the drop down results div does not get css applied to it so the selections don''t get highlighted when I use the up/down arrows and so I am unable to select from the drop down except for the first item. I have been looking at this in
2009 Apr 04
1
Rails 2.3.2 - template question
Simplest of template files, tst.rb, contains: PROJECT_NAME = File.basename(RAILS_ROOT) run ''echo '' + PROJECT_NAME Running command "rails tst -m ~/Rails_Tools/tst.rb" produces: create create app/controllers . . create log/development.log create log/test.log applying template: /Users/rick/RailsTools/tst.rb Anonymous modules
2006 Mar 16
5
Multiple databases + switching databases
Hello, I have an application that access two different DBMS - Firebird and Postgres. So far, that''s ok. The problem is, depending on the customer logged, a different database (Firebird) must be selected. To make the things clearer: Postgres: 1 database shared by all customers with these tables: - user - vehicle - driver Firebird: several databases with different names and identical
2006 May 31
3
textfield_with_auto_complete - filling two fields
I am going nuts here.. I have a form where users can write a city name (used with auto_complete) - and once they click on the desired city in the dropdown menu - I would like to have the Country field filled automatically as well... Is this possible at all ? If so, can somebody please tell me where I can find some documentation on the subject, or preferrably an example ? Many thanks in
2008 Dec 31
3
[LLVMdev] Unit test patch, updated
On Dec 30, 2008, at 2:54 PM, Talin wrote: > OK changes made and new patch attached. Nice +++ utils/unittest/Makefile (revision 0) ... +# This has to come after Makefile.common, since it doesn't allow us to +# override the VPATH value unless we set PROJECT_NAME, which we don't want +# to do. +VPATH = $(LLVM_SRC_ROOT)/utils/unittest/googletest/src/ Why play with VPATH here? What
2005 Nov 20
1
mySQL 5.0 upgrade - incompatible DateTime format?
I''ve upgraded to mySQL 5.0, and it''s gone pretty smoothly except that on DateTime.now doesn''t seem to return a value that mySQL likes any more, as seen in the following exception: Incorrect datetime value: ''2005-11-20T15:33:12-0800'' for column ''logged_at'' at row 1: UPDATE notes SET `due_on` = ''2005-11-20'',
2006 Oct 02
6
Strange Sorting Issues
Hi there, I''m having some strange sorting stuff goign on. Here''s my search method: sort_fields = [] sort_fields << Ferret::Search::SortField.new("name", :reverse => :false) @results = Listing.find_by_contents @search_criteria, :limit => :all, :sort => sort_fields page = (params[:page] ||= 1).to_i items_per_page = 9 offset = (page - 1) *
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: