Displaying 20 results from an estimated 8000 matches similar to: "auto_complete_for_text_field to association"
2005 Sep 25
12
Browsercam.com Annual Membership
I have been using browsercam.com for CSS testing, but it is rather
expensive. Recently, I discovered others using funadable.org to
purchase a yearly membership as a group.
A year long membership at browsercam.com costs $480.00. This gives us
25 user accounts. I am proposing that 25 people throw in $19.20 for
their 1/25th share of the membership cost. Once I have raised $479.40
I will
2005 Mar 02
1
Cleaning up has_and_belongs_to_many?
Does has_and_belongs_to_many know to delete an object when the last
reference to it is removed?
In my case I have Receiver <<->> Message (with a join table of course),
but have noticed that when the last receiver removes a message from the
association the message still exists.
Before adding code to manage this situation I want to check to see if I
am missing something?
--
2006 Mar 10
0
auto_complete_field, :on_hide woes
Hi,
I have auto_complete working generating a list and populating a text
box in a form. The problem arises when I add the :on_hide option as
follows:
<%= auto_complete_field "search",
{ :url => {:action => "search"}, :on_hide => "foo($(''selected_uid''),
$(''search_list''))"} > %>
:on_hide makes everything stop
2006 May 23
7
self-referencing has_many
Having a devil of a time finding records in a self-referencing has_many
table relationship.
Everything is working find looking at the has_many and the belongs_to
relationship.
But, when I try to find all "orphans", records that are neither a parent
nor a child, I can not find a query that work in ActiveRecord.
This query works in MySQL:
SELECT * FROM templates
LEFT JOIN templates
2007 Oct 09
0
auto_complete :on_show :on_hide
Hi,
Trying to use the auto_complete options of :on_show and :on_hide....
......, :on_hide => "function(element, update)
{allow_change_control(true);} "
but when I do this it runs my js function but the div doesn''t hide.
I would like the auto_complete to work normally and just run a js
function which sets a js variable.
Any suggestions
Thanks
2006 Feb 27
1
Instance methods in runner?
I am having a devil of a time with some runner actions.
I can not seem to call any instance methods on found records.
Even when I strip is down to the basics:
def self.deliver
self.find(:all, :conditions => ["#{Message.table_name}.status
= ?", ''pending''], :include => [:site, :template]).each {|m|
logger.info m.is_recurring? # my method
logger.info
2006 Jan 23
1
[INFO] SMS Aggregators
Awhile ago, I posted some information about SMS Aggregators, this is
just a follow-up, based on changes in the US market.
As of January 31st, any commercial application, sending to US
networks, is required to lease a CSC (short code) from CTIA.
A CSC runs $6000/year for a random code, and $12,000/year for a
vanity code.
These charges are on top of the normal per message fees.
This does
2006 Feb 02
1
Grouping with tags or joins?
This more of a best practices question.
I''m implementing group functionality in a couple of applications.
The typical method, using HABTM, where you create a group and add
members, is typical.
For example, Users, Groups and Messages.
Does anyone prefer tagging instead?
Any advice would be great!
--
Lon Baker
http://www.speedymac.com
AIM: spdemac
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 Jan 28
1
referencing a table
I am trying to use auto_complete_for to reference a different table.
in my clients_controller.rb file
auto_complete_for :case_manager :case_manager.name
^^^^^^^^^^^^
this is not the clients table
my models/clients.rb has:
has_one: case_manager
The above ''auto_complete_for'' line in clients_controller.rb
2006 Feb 21
26
Net::SMS::BulkSMS 0.1
This is the first release of a new Ruby library for the
www.bulksms.co.ukAPI which should allow simple integration of SMS
functionality into your
Ruby or Rails apps.
Sending a message is as simple as:
@service = Service.new(''username'', ''password'')
@service.send_message(''This is my message!'', ''4479123456789'')
# whats my
2006 Feb 14
20
Adding payment to an app: how hard and risky is it?
Hi all.
I have never implemented online payment and it''s the only thing that
keeps me from accepting a project for a UK based client. (I must reply
quickly!)
While I can afford spending an extra week - or 2 - to learn/try/tune the
payment system, I must be sure to succeed before I accept the contract.
If you''ve already been through that path, any hints, links and/or
2005 Aug 18
1
Auto Complete, works as adverrtised?
I''m trying to use the auto complete now and I get:
undefined method `auto_complete_for'' for #<ProductsController:0x40a44338>
My code is:
def auto
auto_complete_for :product, :title
end
Just like in the "view source" div from the demo. Well, almost like it. Am I
missing .rb library somewhere?
thanks
Jacob
2006 Jan 28
2
javascripts
Trying to use auto_complete_for which works fine on my home system.
I see that when I use <%= javascript_include_tag "defaults" %>
that when used, the webrick reports
GET /javascripts/prototype.js
GET /javascripts/dragdrop.js
GET /javascripts/effects.js
GET /javascripts/controls.js
but on the system that I am trying to develop on and doing similarly,
the webrick only reports
2006 Feb 07
11
Possible Rails Security Issue?
I have an e-commerce site and users check out with a form. The
results of that form are sent to a "confirm your order" page via
POST. I take great pains to NEVER store the full credit card number
on my server--just the last 4 digits. I was very surprised to find
that by default Rails will record POST requests with parameters in
the production.log. And those parameters
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 Jan 11
0
Easy Question, I Think
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2006 Jan 12
0
Easy Question, I Think [re-post, sorry if dupe]
I am just getting started with Rails, don''t know any Ruby, and don''t
quite even get object oriented programming yet. I have tweaked my
schema to The Rails Way and have generated a bit of scaffolding.
I am trying to create a new Part, which references a PartName and a
PartNumber. I can create a PartNumber on the fly, but the PartName
has to exist. I have an inelegant solution
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all,
I''m looking for some insight on why my text_field_with_auto_complete
might not work in Internet Explorer. I''m using it in a fairly simple
way, without much customization.
I''ve broken it down and made a test page at
http://realty.colemanation.org/houses/test which shows the behavior I''m
having problems with. For me on Windows XP this page works
2006 Nov 04
1
role based auth breaks auto_complete_for
Hi there
I bought the rails recipes book, and I implmented the role based auth,
but that breaks my auto_complete_for, I added it to the right table ,
but no luck,
any tips would be apreciated
Thanks in advance