Displaying 20 results from an estimated 100 matches similar to: "Getting error on a group select"
2006 Jun 16
0
Getting an error on options_groups_from_collection_for_select
Hi,
I''m very new with Ruby and Rails. I have read Agile Web Development
with Rails and was trying to create a grouped selection list by
following his example on page 359.
My helper looks like this:
module LoginHelper
AssocOption = Struct.new(:code_name, :display_name)
class AssocType
attr_reader :type_name, :options
def initialize(name)
@type_name = name
2011 Feb 25
3
Can the Sidekick PIM run in Wine?
I have been trying to get the Personal Information Manager Sidekick to run on Wine and Crossover. Our company is trying to move over to ubuntu(still fairly new) and after two weeks of searching i have yet to find a contact manager with the functionality and flexibility of sidekick so we are trying to get it working in Ubuntu. The program runs fine but then instantly crashes when i attempt to
2008 Dec 23
1
aggregate / tranpose data
Dear R-Users,
Suppose I have data in the following format:
CODE_NAME ZIP_CODE
John 12345
John 23456
John 34567
Jane 13242
Jane 22123
I want to transpose / convert it into:
CODE_NAME ZIP_CODE
John 12345,23456,34567
Jane 13242,22123
Any idea/pointer is appreciated.
2010 Aug 19
1
Composite primary keys and :joins=>
I have a legacy db with the following simplified structure:
Table-A:
type_key, code_key, name, ... # PKs are type_key and code_key,
there is no id col and I cannot alter this db
Table-B: # each row has only the code as a foreign_key, the type_key
is hard-coded to "FOOKEY"
an_id, code, ...
Models:
class TableB < AR::Base
set_table_name ''table_b''
2008 Nov 21
1
[LLVMdev] Simple stack machine
Hi all,
we're looking around a bit for a small and simple stack-based architecture,
that we could use as a sidekick to the DSP processor we are developing.
We've been looking at ZPU for a bit, but are also considering developing our
own hardware for this (possibly very much tuned to LLVM). Of course, that
would also mean building an LLVM backend. I guess having a very simple backend
2002 Nov 02
1
nmbd quitting
I just can't find the answer to solve this issue and I thought someone would
know the answer. Finally got SWAT running and configuring a clean smb.conf
file. If I try to start nmbd or smbd, they load for a few seconds and then
quit.
log.nmb (etc/var/log/samba/) has the following;
[2002/11/02 13:51:07, 0] lib/util_sock.c:open_socket_in(829)
Get_Hostbyname: Unknown host sidekick
I'm
2006 Apr 28
2
Random 1-way audio on IAX2 Connections
I have 2 Asterisk servers connected via IAX2 connections.
PBX1 is on the internet with a public IP Address
- with PRI
PBX 2 is behind a NAT router with IAX2 Ports forwarded
1-way audio is an issue with incoming and outgoing calls using the PRI.
However whenever 1-way audio occurs, PBX2 can call PBX1 extensions and there
are no issues. As well as a restart of asterisk on PBX2
2009 Jan 21
3
Nested serialization with to_json and to_xml with array and hash element
Title: Nested serialization with to_json and to_xml with array and
hash element
class Person < ActiveRecord::Base
has_one :address
has_one :job
def office()
return "Executive_Suite"
end
end
class Address < ActiveRecord::Base
belongs_to :person
end
class Job < ActiveRecord::Base
belongs_to :person
has_one :paygrade
def Title
return "Engineer"
end
end
2006 Feb 02
0
proposed bugfix/patch: ActiveRecord cross-module associations
Hi,
I''m still test driving the improved support for module namespaces in
rails and I''ve hit a problem with associations between AR classes in
modules and AR classes in the root namespace.
The long and short of it is I want to be able to say:
Foo::Bar.belongs_to :wibble, :class_name => "::Wibble"
If you don''t try to prefix ''Wibble''
2007 Nov 07
5
Unexplainable failure...at least for me
I have an address model with country_id and province_id fields
There is also a full_address method that returns an address that is in a
format that the google maps api will be able to return a long-lat
coords.
Within the full_address method there is a call to obtain the
province/state and country name.
---------
def full_address
...
full_address = [city, self.province.name,
2007 Feb 12
0
[862] trunk/wxruby2/swig/fixmodule.rb: Fix regression from upgrading to SWIG 1.3.31; cure lots of MSW crashes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2008 Aug 21
1
Samba PDC with groups in LDAP
Hi All,
I'm wondering if anyone can shed some light on a problem I'm
having.
I have a samba PDC with an LDAP backend, keeping the smb.conf file constant,
When I have /etc/nsswitch.conf configured with
groups: files ldap
Then
/usr/local/samba/bin/net rpc user info dbb
only returns my primary group.
If I have /etc/nsswitch.conf configured with
groups: files nis
Then all
2006 Jan 23
3
problem with a selfmade helper method
Hi all,
i tried to set up the helper method "grouped_programs_selector" in
application_helpers.rb. Since i dont have a deep understanding of Ruby
itself, I pretty much copied the Grouped Selection List (Chapter 17, pp.
259, 260) example from Dave & David''s Book.
The optiongroups are properly created by my method, but there are no options
inside. Maybe you can debug this
2005 Jun 07
3
BBEdit Ruby & Rails Syntax Module available
I''ve made a Ruby & Rails syntax coloring module for BBEdit. This is a
"Codeless Language Module", so it will only work with BBEdit 8+. It''s
basically a giant list of Ruby and Rails keywords, method names, and
so on. It''s both Ruby and Rails because BBedit only lets you
associate a file type with one language module.
The file is available here:
2008 Jul 30
0
[LLVMdev] llvm-gcc fortran bootstrap broken
On Wednesday 30 July 2008 18:13:27 Duncan Sands wrote:
> On x86-64 linux, in stage 2, I get:
>
> c++ -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wmissing-format-attribute -fno-common -DHAVE_CONFIG_H -o f951 \
> fortran/arith.o
2010 Aug 13
0
some helpful tips on using RODBC
Hey everyone,
I don't have a question. Instead some helpful advice with things I've
learned from trying to connect 'R' to databases using RODBC.
ROBDC is a very handy tool that, once you have everything fixed up
nicely, is a great way to have scripts run fairly autonomously, safe in the
knowledge that data isn't accidentally messed up. But I was fairly ignorant
2006 Mar 16
2
[LLVMdev] Re: Re: Re: Re: Re: New GCC4-based C/C++/ObjC front-end for LLVM
Evan Cheng wrote:
> Hi,
>
> Here is the follow on patch for this problem. Please apply this from
> the top of the tree and rebuild.
With the patch from Chris and then the patch from you combined, the previous
error disappeared, but I get another error, reduced to this:
./cc1 -fpreprocessed libgcc2.i -quiet -dumpbase libgcc2.c -mtune=pentiumpro
-auxbase-strip libgcc/./_clz.o -g -O2
2006 Dec 15
1
Ferret debugging
Is there any way to debug processes of creating/updating of index and
data retrieval?
I use ferret (0.10.13) and acts_as_ferret plugin, and it seems that
index is being updated - field ''state_or_province_or_region'' has value
''ON'':
ferret_create/update: Entity : 1
creating doc for class: Entity, id: 1
Adding field description with value ''Sed metus
2015 Dec 23
0
[ANNOUNCE] xf86-input-libinput 0.16.0
xf86-input-libinput 0.16 is now available. This release fixes a
long-standing issue with mixed devices that expose a pointer and a keyboard
interface at the same time. X requires a strict separation between pointers
and keyboards, these devices were usually initialized as pointers and
exhibited some keyboard functionality issues (e.g. XKB layouts didn't get
applied correctly). With this
2001 Nov 14
0
RODBC: Minor problem, I hope.
Sorry for the numerous posts, I found that an old (~ June) post had the same
title and confused me (and the list server) greatly (and made it hard to get
this as a new thread).
Anyway...
I'm trying to get the RODBC package to work with a MS Sql database
(Wonderware's InSQL). I'm able to connect to the database using the
following:
version
_