Displaying 20 results from an estimated 5000 matches similar to: "validation of aggregates"
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 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 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 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 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 14
1
removing an object from params hash
I have an object that I would like to remove from params hash thinking
that may solve a problem (it might not).
params[:placement][:clwholename]
how can I just remove it from the params hash?
Craig
2006 May 17
5
text_field_with_auto_complete (newbie question)
I have the text_field_with_auto_complete woking on my user DB using
last_name. so looking for ''ivanoff'' works great, but I can''t find
''john''. Plus I like to have ''last_name, first_name'' show up in the
dropdown.
what I can''t figure out is how to concat first_name and last_name to
make a name and use that to look it.
working
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 Mar 17
1
Autocompleter.Local problem/desparate plea for help...
I have been trying to write a selector function for Autocompleter.Local that
will show a predefined Array and will scroll automatically to the first
match. I have had success with with getting my list to populate and show
all of the choices, however I cannot get it to scroll to the first match.
Since I build the JS Array I can know exactly how many items are in the list
going into my selector,
2006 Feb 08
29
Autocomplete and Firefox
Having problems with the autocomplete on my linux box and firefox.
When I use form tags it breaks, without form tags everything works fine.
Exact copy of the example provided, but I added form tags.. The initial
search and select works but then the box sort of "locks up" and I can''t
change it at all, If I do try to type something nothing changes but a
second later the whole
2009 Apr 19
2
Upgrading from Rails 1.3.x to 2.3.2 - text_field_with_auto_complete not working
Folks,
I am trying to upgrade code base from 1.3.x to 2.3.2 and not
surprisingly, lot of things are broken.
''text_field_with_auto_complete'' is not working for me - it gives the
following error:
ActionView::TemplateError (undefined method
`text_field_with_auto_complete'' for #<ActionView::Base:
0x7f0ceb6b8290>)
I already have installed auto_complete -
ruby
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 Mar 13
3
Autocompleter that auto scrolls through results..
Hi All
Before I investigate further, has anyone implemented an Autocompleter that
will auto scroll down / up the results div as the user moves down through
the list (using arrow keys) ?
Any pointers / thoughts appreciated.
Best
Matt
***********************************************************************************
The Royal Bank of Scotland plc. Registered in Scotland No 90312. Registered
2009 Jul 10
3
text_field_with_auto_complete
I need to pass a parameter in my text_field_with_auto_complete and am
struggling to discover how to do this. I have something like this:
<%= text_field_with_auto_complete ''user'', ''username'', {}, {:with =>
"''post=''@company_title.id"} %>
but because it is in a partial that pops as a result from a
remote_function_tag, I am
2006 Mar 09
15
regular expressions slay me
I am furiously trying to find what I am looking for in Pickaxe book and
not finding it.
I''m getting some values back from a posted form and I need to get the
''id'' number off the backend. The ''String'' will always come back to me
as...
Some_name\r\n123
where 123 is actually the id number which I need to execute the find.
The reason they are coming back
2006 Feb 11
6
models and validation problem
In my model, I am attempting to correct some bad data rather than just
pass an error message back to the user. The problem is that my fix
seems to get the data past validation but it then puts the bad data into
the database rather than the new(and improved) data. If I pass in
web_site with the value of ''www.test.com'', it will pass validation but
it won''t add
2008 Nov 21
2
How to install the plugin manually?
Dear all
I would like to install plugin auto_complete but failed..
jruby -S script/plugin discover
C:/jruby-1.1.5/lib/ruby/1.8/open-uri.rb:278:in `open_http'': 407 Proxy
Authentication Required (OpenURI::HTTPError)
I have set the http_proxy=http://user:password@host:port/, It is working
fine to fetch gem files.
I know the plugin is in here:
2007 Oct 23
6
Auto complete plugin and CSRF protection-- do you care?
Hi,
I just noticed that the auto_complete plugin does not work with the
CSRF protection in Rails 2.0. I''ve patched the plugin, but I''m
wondering if people would like to see the official plugin fixed. If
so, speak up and I will write some tests and submit the patch.
Krishna
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are