similar to: find.collect problem.

Displaying 20 results from an estimated 400 matches similar to: "find.collect problem."

2007 Nov 02
1
1 error(s) on assignment of multiparameter attributes - Very Strange
Hello... Well, I post this one without too much hope that someone will be able to give me an answer, because it is strange. I have a time select field, the field on the database is of type time only. When creating a document, as long as the time is not greater than 14:00, then it saves as 00:00, but if the time is greater than 14:00 and less than 22:00 then it throws this error: 1 error(s) on
2006 Jul 07
5
link_to: link is missing id
I''m using a legacy table, where the unique id is not ''id'' I have a Model class like the following: class Article < ActiveRecord::Base set_primary_key "ARTICLE_ID" end however, using a link_to like the following (modified scaffolding), the link has no id value: <% for article in @articles %> <tr> <% for column in
2006 Mar 09
2
turn off auto increment
Hello, I have an old table that handles sessions. the primary key is a field called session_id and is the actual session id like "8df838303ufdfu838" however when i do the following in the model: set_primary_key "session_id" and the following in the controller: @session_hash = { "session_id" => @session.session_id, "session_user_id" =>
2010 Mar 31
3
Could not find dependency
Hello, I have the following define: define adduser ($shell, $group, $fullname, $ingroups = "none", $home = "none") { user { "$name": ensure => present, comment => "$fullname", gid => "$group", groups => "$ingroups", membership => minimum, shell => "$shell", home
2006 Jan 17
15
legacy database and finder_sql nightmare!
This is my first rails app with a legacy database and I''m having a terrible time getting the models set up correctly. I have an order table that has a primary field named order_number. I have a name table with a primary of item_number. These two tables are liked by the item_number and the order_number, but not as you might think. If the order_number is 2500, then each entry in
2005 Jul 23
11
Validation without ActiveRecord
Hello, I followed the instructions at http://wiki.rubyonrails.com/rails/show/HowToUseValidationsWithoutExtendingActiveRecord But now I''m having trouble trying to create my form view. Here''s a brief rundown of what I''ve done: - Created a class called SearchRequest that extends ValidatingBase and saved it in a file called search_request.rb and put it in my models
2008 Dec 22
3
how to use set_primary_key?
We are trying to use set_primary_key to cause an existing rails db to use a different primary key. This works find for accessing existing data, but gives an error when we try to add a new record, as it seems to still be accessing the record by the default id field at that point. Are there other changes we need to make to get an alternate primary key working? Thanks, Ken
2016 Jun 17
2
Agents.conf Device_state
Hello, I think Device State for Agents don't work correctly My configuration: agents.conf [general] [agent](!) autologoff=15 ackcall=no acceptdtmf=# wrapuptime=5000 musiconhold=default recordagentcalls=no custom_beep=beep [2000](agent) fullname=Fulano [2001](agent) fullname=Zutano [2002](agent) fullname=Mengano queue.conf (Agents Related) member => Agent/2000 member =>
2006 Jan 18
3
legacy database on remote host
I''m getting this error in webrick then it crashes leaving nothing in the log. ruby: symbol lookup error: /usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.so: undefined symbol: mysql_sqlstate Here is the standard query I would normally write to get the data. select * from child,parent where CONCAT(SUBSTRING(child.item_number,1,14,''00'') = parent.order_number and
2006 Feb 03
3
My associations are coming out nil.
I''ve got a fairly simple system with a table for my Users that includes a CountryId field which looks up to the CountryId field of my Country table. What I would like to happen is for my Rails application, which contains models for both User and Country, to be able to draw the dropdown list of available countries on the edit page, like it does in all the tutorials. My model classes look
2006 Jan 19
5
limits of has_and_belongs_to_many
I''m experimenting with Rails on the Recipes example first before I dive into applying it to my intended application. I''m exploring which will be more work: to rename all the primary id''s in the legacy database, or to work around the fact that the primary id''s are not called ''id'' within RoR instead. I''ve been successful in using a
2007 Nov 30
2
My AsteriskNo unable to registration
Dear The Expert, I am very new with this, I have installed AsteriskNow, X-Lite as my SoftPhone, I am using SPA-3102. I have 3 extensions, me at 250, 998 is my Linksys SPA-3102 and 999 for PSTN Line (see below) My problem is, I am unable to call 998, I thought this is registration problem, (because the Linksys screen info said Registration Failed) Could any body please help? Many thanks in
2013 Nov 22
4
[PATCH 0/2] libxl/xl: two more coverity related fixes
The first patch is a leftover from the switch to libxl__create_qemu_logfile, and while there it also handles possible errors when opening /dev/null. The second one is a fix for the issues present in do_daemonize. Thanks, Roger.
2006 Feb 28
4
multiple keys table
probablly a newbie question: Rails does not support a table with multiple keys ??? it seems that the ActiveRecord set_primary_key method can only set the column name... (hope i''m wrong there) example: table A - P.K id, string name table B - P.K id, string name table C - P.K a_id and b_id, both are also foreign keys. Thanks, Amir. -- Posted via http://www.ruby-forum.com/.
2006 May 15
8
set_table_name and self.table_name
I have some legacy tables that I used set_table_name on, I''m attempting to write a method that will get key value from a sequence table and then update it and return a value. I''m hoping to put this in the base ActiveRecord method so I would like to reference the table name with self.table_name or something... class Contacts < ActiveRecord::Base set_table_name
2016 Jan 07
2
Domain name search path use during PXE booting
Currently it appears that when PXE booting the domain search option is ignored and only the domain name option used for name resolution. The following patch adds support for domain search path usage when PXE booting: - adds parsing of the DHCP domain search option (119) - When resolving names via dns_resolv uses the search path if there's no dot in the name. - Reverts to the
2006 Mar 15
1
Through method problems with custom foreign_keys
A person has a many company_branches and A company_branch has many people. This join is represented using a "contacts" table. I am using a legacy schema so i am forced into using non-standard rails primary keys. I am using the new through relationship in rails 1.1. p=Person.find(1) b=p.company_branches # gives this error: ActiveRecord::StatementInvalid: OCIError: ORA-00904:
2007 Sep 28
3
Host groups config in puppet & User Management.
Hi, I have installed Puppet puppet-0.23.2-1.el4 & puppet-server-0.23.2-1.el4. Now trying to configure. I have a basic config which changes the sudo permission of the file. Currently I am using the puppet server as client. Now I wanted to add all my hosts some linux some unix. So was looking for a config syntax whioh can create groups. Like IT = [ host-1, host2, shost3 ]
2004 Sep 17
3
MySQL Voicemail Problems
I know this has been moved to contrib, but is anybody using it successfully? We are looking at using Asterisk for the fine IVR features it has, tied in with another platform. Calls are getting routed to it, but the following is happening: (I've redacted phone#s and passwords) asterisk log: Sep 17 11:56:24 WARNING[17423]: No entry in voicemail config file for '+13609XX2000' Sep 17
2006 Jan 04
4
HOWTO: Render partial in div
Hey- I''m using ROR 1.0 and script.aculo.us 1.5.1. I''ve been trying unsuccessfully to render a partial in a DIV, but can''t seem to get the right combination of stuff to make it work. There seems to be a few different ways of going about it. Right now I can render a partial. What do I need to to render the partial in a div? Here is what it looks like so far: #