similar to: text field auto complete

Displaying 20 results from an estimated 20000 matches similar to: "text field auto complete"

2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ? My form looks like this: <%= form_remote_tag :url => { :action => ''do_image_upload'' }, :html => { :enctype => ''multipart/form-data'' } %> <%= file_field ''image'', ''file_data'', :size => 32 %> <%= submit_tag
2006 May 12
1
auto complete a text field
Hi, Im looking for a way to autocomplete a text field, I have found this, http://wiki.rubyonrails.com/rails/pages/HowToUseAdvancedAutocompleteFeatures but at the top it says "Note that there?s easier ways to do this built into newer versions of Rails, this was written in the early days of the framework. If I get a chance, maybe I?ll update." Any ideas where i can find some info on
2008 Aug 26
0
utf-8 encoding problem for text field
hi all, I have a problem concerned with utf-8 encoding and text_field. the text field - <%= text_field :query, :text %> In the text_field I entered keloidales de acné In controller I tried params[:query][:text] for this I get keloidales de acn and é is omitted.. please can anyone give a solution for this thanks and regards Raju -- Posted via http://www.ruby-forum.com/.
2006 Jul 27
2
setting initial text field values in a form
Hi, I am trying to create a basic form in which I want one of the fields initialized before displaying it. My code (in a view) is as follows: <% if ( session[:user_id] != nil ) then logged_in_user = User.find(session[:user_id]) end %> <% form_for :suggestion do |form| %> <label for="suggestion_title">Topic:</label><br/> <%=
2012 Apr 09
0
Autocomplete text-field version of dynamic select menu?
I have a form for submission of brand, model, and style. Style belongs_to model, and model belongs_to brand. The form is actually a style submission form, but allows users to create new brands or models as well, should they not exist. What I want is for the autocomplete for ''model'' to populate when an object for ''brand'' is selected in the first text field..
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design of my site, I don''t have room to put the word "username" in front of the text field so I''d like to actually display it inside the field and then have the word clear when the user clicks on it. How could I modify something like this <%= text_field "user", "login", :size
2006 May 12
4
default value in text field
hi, This should be really simple, but i cant seem to find the answer anywhere!! In my _form.rhtml I have the following text field, how can I define a default value? <%= text_field ''purchaseorder'', ''number'' %> -- Posted via http://www.ruby-forum.com/.
2006 Apr 24
0
Updating a form containing array of text fields with has_many/belongs_to relation?
I''ve got a User class and an Employer class set up as follows: User.rb: has_many :employers Employer.rb belongs_to :user My tables are as follows: mysql> select id,first_name,last_name from users limit 5; +-----+------------+-----------+ | id | first_name | last_name | +-----+------------+-----------+ | 711 | Patrick | Stewart | | 714 | Larry | Davis | mysql>
2006 Aug 05
0
Adding quotes around a text field
I have a text field where people enter tags and click a button to submit. Some of the users are entering multiple tags accidentally (i.e. ''really'' and ''cool'' instead of ''really cool'') so I''d like to alter my code so it automagically adds quotes on either side of whatever they submit. I haven''t the foggiest idea where to
2007 Oct 22
2
Strange scroll behavior of Auto Complete inside Active Scaffold.
Hi Everyone. After a long weekend of testing some stuff out I finally got the auto suggest working. I have got a problem however in both IE and Firefox as the drop down scrolls the page down to the element only when the up arrow is pressed. Here is a detailed example. When I have <%= text_field_with_auto_complete :product, :colour %> in my product _form.rhtml override... ... and in my
2006 Feb 20
0
How to reference a field of an associated object in a text_field
Hi, I hope someone can help, I am stumped. I have a Registration ActiveRecord object. It records registrations for people for classes. class Registration has_and_belongs_to_many :people has_and_belongs_to_many :scheduled_courses end I have a form that allows someone to register. A registration form will register two people. They fill in their names, addresses, and the classes they
2006 Feb 17
0
Caching Auto Complete Field
Greetings, I''ve extended script.aculo.us to have the autocompleter cache it results in the browser and only callback to the server when you clear your filter. This provides good performance for lists with lots of elements on a busy site. Typically, your initial result set doesn''t actually change, items just get filtered out. Why have your database perform this simple
2006 May 04
1
Instance or local vars for field helpers in partial template
I''m getting confused. If I have a view (.rhtml), I can use a field helper like: <%= text_field :mymodel, :attribute %> This uses the value from @mymodel.attribute Now, if I am rendering a template normally (i.e. not partial), I would expect @mymodel to be a model object defined as an instance variable in the controller. However, if I am rendering a partial template, I
2011 Mar 23
0
Implementing auto complete for more than one field in Rails
Hi, I have an app, which implements a group feature. Each group has n members. Also, each group has a group specific profile pic to it. I have been able to implement auto complete for the group feature keeping in mind the group name alone. I have referred to the following tutorial for the same:- http://railsforum.com/viewtopic.php?id=23188 I am using **ruby 1.8.7** and **rails 2.0.2** for
2006 Apr 24
4
Does Rails need more useful form helpers?
I have been using rails professionally for only a month and a half now, but I am continually running into problems with form helpers and accessing multiple objects on a single page. To whit: 1. While text_field and text_area and such all support the :index option, the select helper does not. 2. When appending the text ''[]'' to a helper''s object name, the id is
2008 Jul 11
1
form_tag and hidden text fields
Hello, while designing a form with the form_for tag, I m not being able to hide my text fields. Here is an excerpt of my code : <% form_for :foo, @foo, :url => { :controller=>"foo",:action => "create" } do |f| %> <tr> <td class="col2"><%= f.text_field :user_id, :type => ''hidden'', :value=>current_user.id
2006 Nov 04
0
Using Field Helpers to Edit a Related Model Object
Hello folks, Here''s a question about creating an edit screen for a model and a related model. On page 355 of the AWDWR book (printed page 464 of the 2nd edition pdf), there''s a little table showing how form parameters map to the params object. One of them is: user[address][city]=Wien ... maps to params as ... { :user => { :address => { :city =>
2006 May 22
2
Inserting data in a table with a varchar key field
Hi all, I have some problems inserting data into a legacy table. the key field of this table is a field named CIN which is a varchar(15). when I try insert into this table using a form (generated by the scaffold generator) I get this Error : _____________________________________________________________________ undefined method `CIN_before_type_cast'' for #<Candidat:0x370d8c8> |
2008 Apr 02
2
New winetricks 20080402: new verbs dotnet20, win2k, flash, msls31; updated mono, liberation
Big news: as of today or so, wine doesn't need any patches to install the .net 2.0 runtime or run trivial .net 2.0 apps, so I've added a dotnet20 verb. No more futzing with recipes to try out simple .net 2 apps, huzzah! There are lots of other little changes, too: 20080402 r21 Added dotnet20, removed one kludge from dotnet11, added win2k verb, plus shorthand for winver=foo r20
2011 Aug 07
3
New field does now show in browser
Hi all I just added a new field phone to form _form.html.erb created with: rails generate migration AddPhoneTotickets phone:string added with rake migraiton and the new field does not show in the browser new <div class="field"> <%= f.label :phone %><br /> <%= f.text_field :phone %> </div> old <p> <%= f.label :phone