search for: personalities

Displaying 20 results from an estimated 34067 matches for "personalities".

2006 Mar 16
9
Help needed on STI syntax
Struggling a little with getting the syntax right for a STI model. Prob just being a bit dense. Couple of questions I''m hoping you guys can answer: Assume here I''ve got: class Person class Manager < Person class Slave < Person 1) How does person[:type] differ from person.type when type is the column used to specify the subclass. They seem to output the same
2006 Aug 16
1
update entry in a has_many relation
Hello all, I want to upate a entry in a one to many relation, but is doesn''t work. I can add or delete a specific entry, but I can''t update it. Can anyone help me? Here is the code: class Person < ActiveRecord::Base has_many :materials end class Material < ActiveRecord::Base belongs_to: person end class PersonController < ApplicationController def update
2009 Nov 19
1
ddply function nesting problems
While putting my R code into functions, I've encountered a ddply function nesting issue and need a bit of advice on the proper way to fix it.? I've tried several approahces, but neither worked and I need to have the ability to include the "cut", "range", and "fullseq" methods within ddply.? (For a bit of that explanation refer to
2007 May 27
3
[NoMethodError] simple problem
I think this test should pass but it doesn''t 1) NoMethodError in ''Person should return full name'' undefined method `full_name?'' for #<Person:0x3567964> ./spec/models/person_spec.rb:43: describe Person do it "should return full name" do person = Person.new person.should be_full_name end end class Person < ActiveRecord::Base def
2006 Jul 03
5
stopping error mailer on development
I sleep better with it in place in production mode and I only get one error notice - every once in a while for a problem that I have fixed in development branch that I am not ready to merge in the main trunk yet. I want to keep the error mailer code in place in development code for obvious reasons and even though I can set up filters for my mail system, how can I simply shut it off for development
2006 Apr 01
3
acts_as_list with scope : position update problem?
Hello, I''ve tried to set up a class with acts_as_list with a scope argument that restricts a list to records with the same foreign key. For example : database : CREATE TABLE `families` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) NOT NULL default '''', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ; INSERT INTO
2005 Sep 29
1
Meet me conferencing without blind transfers (Asterisk@home)
Hi, I'm using Asterisk@home and am having trouble using the conference bridge that comes built in. We're using Polycom phones. When we transfer the first person into the conference room (e.g. 8101) , they get into the room fine. When we try to transfer a second person into the conference room, they get dropped as soon as we finish the transfer. This is using Polycom SoundPoint 301
2009 Sep 23
3
Bringing people into a conference
G'day all, I'm using Asterisk 1.4 and am trying to work out a way to bring people into a conference call. In the ideal scenario two people would be talking and one of them would push some keys, then a phone number and then the three of them would be in a conference. From there they should be able to bring in other people as well. This seems to be what the Asterisk n-way call HOWTO
2007 Mar 30
10
check_box_tag not passing 0 when unchecked?
Code: <%= check_box_tag("person[#{person.id}][is_approved]", 1, true) %> Rendered output: <input checked="checked" id="person[7][is_approved]" name="person[7][is_approved]" value="1" type="checkbox"> Problem: The value of "1" is always passed, even if the box is UNCHECKED. Suggestions? Thanks! -- Posted via
2006 Jul 17
14
REST Relationship Models
I''m trying to figure out an elegant way to do this: I have the following three tables: people, employer, employees And consequently the following three models: class Person < ActiveRecord::Base end class Employer < ActiveRecord::Base has_many :employees end class Employee < ActiveRecord::Base belongs_to :person belongs_to :employer end I want to be able to say:
2006 Aug 02
2
Self-Referential has_many :through
Hello all. I am trying to create a self-referential has_many :through. I used the following site as a guide http://blog.hasmanythrough.com/articles/2006/04/21/self-referential-through but it still doesn''t appear to be working. I have two models. Person and Relationship. A person has many contacts (Which is another person) through relationships class Person < ActiveRecord::Base
2016 May 06
2
Resuming the discussion of establishing an LLVM code of conduct
On 05/06/2016 11:03 AM, Jonathan Roelofs wrote: > > > On 5/6/16 11:43 AM, Philip Reames via llvm-dev wrote: >> >> >> On 05/06/2016 09:02 AM, Rafael EspĂ­ndola via llvm-dev wrote: >>>>> Say what you want about the Linux kernel community, but you can't >>>>> call >>>>> it immature. You can call the behaviour of some of its
2017 Nov 15
2
R6 object that is a list of referenced object
Dear community, I am having a class, let's say Person, Person <- R6Class("Person", public = list( idPerson = NULL, name = NULL, age = NULL, initialize = function(idPerson = NA, name = NA, age = NA) { self$idPerson <- idPerson
2006 Apr 18
4
how would you take the duplication out of this?
i have these two really similar methods in my addressbook controller. def edit_company @company = Company.find(params[:id]) if request.post? and @company.update_attributes(params[:company]) flash[:notice] = ''Company was successfully edited.'' redirect_to :action => ''show'', :id => @company end end def edit_person
2006 May 14
2
object class with STI and Polymorphic Assoc''s.
Hi, lets say I have a a table, "Linkings" that I am using for polymorphic associations. One of the associations is to the "person" table, and there are several other associations. "Person" has 2 types, "slacker" and "suckup". It is modelled as such: class Linking < ActiveRecord::Base belongs_to :person belongs_to :linkable, :polymorphic
2011 Jul 31
0
[LLVMdev] RFC: Exception Handling Rewrite
Hi Bill, > Please read this proposal and send me your comments, suggestions, and concerns. this proposal looks great to me. Thanks for working on it. I have a few minor comments, see below. > //===-------------------------- > // The 'landingpad' Instruction > // > > The 'landingpad' instruction replaces the current 'llvm.eh.exception' and >
2005 Dec 29
4
Many-to-Many: Where to add the children?
I have two classes Person and Job defined as follows: class Person < ActiveRecord::Base :has_and_belongs_to_many jobs def add_job(job_name) job = Job.find_by_name(job_name) # See if this job exists if job.nil? # If this job doesn''t exist job = Job.new # Create a new job job.name = job_name #
2006 Apr 14
1
ActiveRecord and multiple associations
Hello, I have a Company that has_and_belongs_to_many Persons. A Person has_many Emails. I want to display each Person''s Email for each Company, so I try this: companies = Company.find(:all) for company in companies persons = company.persons for person in persons puts person.email end end Unfortunately, this doesn''t work correctly. Let''s say the id of
2006 May 26
3
Breakdowns in has_many abstraction
I discovered an interesting aspect of has_many behavior that I''m struggling to work around. I''m not sure if I''m doing something wrong, or if it''s a legitimate bug, or if it''s an inherent part of Rails that I just have to learn to deal with. It boils down to these two problems: - changes in collection objects (i.e. models that belong_to a container
2017 Nov 16
0
R6 object that is a list of referenced object
See below. On Wed, 15 Nov 2017, Cristina Pascual wrote: > Dear community, > > I am having a class, let's say Person, > > Person <- R6Class("Person", > public = list( > idPerson = NULL, > name = NULL, > age = NULL, > initialize =