similar to: text_field_with_auto_complete (newbie question)

Displaying 20 results from an estimated 900 matches similar to: "text_field_with_auto_complete (newbie question)"

2006 Mar 14
2
autocomplete using other models
I''ve asked this in various ways but I can''t seem to get much traction - my guess is because not many people are doing this. I am working in a controller/views called placements. Placements belongs_to :client I have a clients model/table - clients has_many :placements in placements/find...this works fine... <%= text_field_with_auto_complete :placement, :clwholename, {} %>
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 Jul 22
3
refactoring commonly used aggregations
I have a number of models that use an aggregation to combine First Name, Middle Initial and Last Name and they have been working fine. I am looking to clean this up, DRY it if possible. I have things like this in application.rb class Clwholename attr_reader :first_name, :middle_initial, :last_name def initialize(first_name, middle_initial, last_name) @first_name = first_name
2006 Mar 10
3
css question
I''m doing this ''partial'' to do some ajax auto_complete <ul class="placements"> <% for client in @clients do -%> <li class="placements"> <div class="clwholename"><%=h client.clwholename %></div> <div class="id><span class="informal"><%= client.id
2006 May 23
5
text_field_with_auto_complete
I am having some trouble using `text_field_with_auto_complete'' in Firefox. For some reason, the drop-down list is being rendered behind other table elements. Firefox (broken): http://schema.ca/broke.png Safari: http://schema.ca/safari_works.png I''m wondering if anyone is aware of this problem, and what I might be able to do to work around it? Thanks, -Mike
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
2006 May 22
2
text_field_with_auto_complete part II (newbie question)
now that tha auto complete works (thanks Craig) I''m at a stumbling point again. here''s the situation. I have a text box that gets populated from the auto complete that has "ivanoff, john" and I want to add him to a list of approved users. how do I get the id to add to the employees_users table? do I need to look up the employee in the employee table or can I get the
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 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 Feb 26
3
simplify
Trying to use Eric''s help and Amy Hoy''s page of playing with auto_complete and decided that the script/console is the place to rapidly test. I have this feeling that CONCAT isn''t working for postgresql... c = find_by_sql(SELECT * FROM clients WHERE CONCAT (first_name,middle_initial,last_name) = "johnadams") ^ (irb):61:
2006 Mar 04
6
validation of aggregates
This may not be possible... I have an aggregation of clwholename defined in my model. the aggregation builds clwholename from :first_name, middle_initial, last_name and it generally works fine. I am trying to add a validation so while there may be many ''John'' first_names, and ''Doe'' last_names, I only want one ''John Doe'' so I tried...
2006 Jul 07
6
mongrel/win32/apache2 link modification question.
I have apache2 - mongrel 0.3.13.3-mswin32 running, on a server 2000 pc, by folowing the ''Serving Multiple Rails Applications on Windows with Apache and Mongrel'' ( http://tinyurl.com/z9ftz ) the question I have is why is why is http://localhost/myapp/ addded to the front of all my links and how can I stop it? origanal link using webrick /employees/edit/1214 now
2007 Jan 25
2
text_field_with_auto_complete problem
I have some difficulties with text_field_with_auto_complete. I’m new to this, it just will not work, I must be doing something wrong. It would be great if someone could advise me. I have tried to follow advice available on the internet, so I don’t know what the problem is. The script gets as far as the breakpoint in the controller, but it doesn’t like the next line – giving the error message
2006 Jan 20
3
postgres db setup
All of the tutorials and the Agile book use MySQL and I''ve got that working. I am now trying to use PostgreSQL and can''t seem to get going. Is my problem the db setup in postgresql? I have installed postgres-pr The error message when I try to access http://localhost:3000/clients when using PostgreSQL (MySQL works fine) ActiveRecord::StatementInvalid (RuntimeError: ERROR
2006 Aug 15
6
FileSystemWatcher - has any one done this?
I''d like to monitor a folder and when someone drops a file in there I can take the files name and add it to a database. My dream is to have a folder always being watched. and if someone drops a file or folders with files into that watched folder, I take the filename(s) and insert them into a db and if the files are in folder I use the folder name(s) as tags for that file. make sense?
2006 Feb 03
9
Because I''m very slow - trying to use console
I can''t see how to use variables so I am using console to test things out... clients table - a column named first_name My very brief console session... >> clients = Client.find_by_sql("select * from clients where first_name = FN") ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn "fn" does not exist Fparse_expr.c L1034
2006 Apr 16
2
:after_update_element on text_field_with_auto_complete
I have a a basic prototype coded: #view <%= text_field_with_auto_complete :student, :last_name, { :size => 15 }, :after_update_element => "alert(''hello world'');" %> #controller class ScoresController < ApplicationController auto_complete_for :student, :last_name end If I take out the :after_update_element option everything works as advertised.
2006 Oct 16
4
has many :through, accessing join model attribute (newbie)
from the rails recipes i have a has_many through "working". I can list a user and what magazines he subscribes to. but I can''t seem to figure out how to get the other attributes from subscriptions. (like last_renewed_on) reader_controller.rb def list_reader @readers = Reader.find(1) end ---------- list_readers.rhtml <dl> <dt><%= readers.name %> </dt>
2007 Feb 01
16
Help with RadRails...
Hi everyone, I hope someone can help with some RadRails guidance... ( on WIndows XP ) I''ve been using UltraEdit and it''s Project management is good, but I feel RadRails should be better with the inbuild Ruby and RoR features... I''ve tried working through the tutorials on the web site for example the CookBook tutorial & it tells me to go the Generators Pane, which
2008 Jun 12
11
auto_complete with multiple params
I''m using the auto_complete plugin, and it works great, my problem is i need to pass multiple parameters to the controller other that what is typed in the text field. <%= text_field_with_auto_complete :search, :contains, :size => 15, :frequency => 0.1, :skip_style => true -%> This is what i have as of now, but i also need to pass ":language => @default"