similar to: Naming Relationship

Displaying 20 results from an estimated 2000 matches similar to: "Naming Relationship"

2006 Apr 05
0
Has Many :through associations
Greetings again: I''m simplifying the case I presented earlier regarding the use of has_many :through. I''m using DHH''s example from "Persuing Beauty with Ruby On Rails". Here are his models: class Author < ActiveRecord::Base has_many :authorships has_many :books, :through => :authorships end class Book < ActiveRecord::Base has_many
2007 Jun 21
9
it_should_behave_like
I''m trying to use it_should_behave_like, and something seems to be wonky with the syntax. When I add :shared=>true, the DSL complains that the next line is the fixture declaration: /vendor/plugins/rspec/lib/spec/dsl/behaviour_eval.rb:137:in `method_missing'': undefined method `fixtures'' for #<Spec::DSL::EvalModule:0x324a2cc> (NoMethodError) Here''s the
2006 Dec 20
7
has_many :through does it support collection_singular_ids ?
Good evening list members, I have the following model: class Author < ActiveRecord::Base has_many :authorships has_many :books, :through => : authorships end Should I be able to do the following? Author.find(:first).book_ids = [1,2,3] I ask, because it doesn''t. The docs state that it should, but it doesn''t specialise in the case of a :through This
2006 Apr 13
3
Java/J2EE DAO/model objects vs. Ruby/Rails model objects
In typical Java/J2EE applications, domain model object do not have much logic, they are basically data holders. It seems to be considered a sin to put persistence logic in the domain model objects, instead it should be put a DAO (Data Access Object). I have always thought this seems funny, after all, what seems more natural/object-oreiented?: user.save() or userDao.save(user) In Ruby/Rails,
2005 Jan 12
2
Samba and ProxyArp
Hi As per my follow up mail I implemented the ProxyArp configuration as per the Documentation on the Web site and all seemed to be working correctly. However, the one thing that doesn''t seem to be working properly is Samba. I have Samba running on the FW machine and one of the servers 192.168.0.8 on the Local Lan. I can connect to a Share using Samba from Server to Server, however
2006 Feb 18
6
Naming join models
I''ve been playing around with EdgeRails and checking out some of the new features. The one that will probably have the biggest affect on my designs is join models (or :through associations). For those not familiar with this feature, it lets you replace your habtm association with a pair of has_many associations indirected through an intermediate model class. Looks like good
2005 Jun 14
0
AW: Should I choose DSL @ 1.5 or a full T1?
I will second that... I have been doing dedicated IP service for my customers for $130/month in Seattle + loop. (most loops are add about $200-300/month). Anything higher is really a rip-off. John :) -----Urspr?ngliche Nachricht----- Von: Huddleston, Robert [mailto:RHuddleston@cavtel.com] Gesendet: Tuesday, June 14, 2005 12:49 PM An: 'Asterisk Users Mailing List - Non-Commercial
2006 Apr 13
1
New Guide - Looking for Feedback
I''ve written a new Rails howto guide. It covers installation of a development environment, how to use Subversion and Capistrano effectively, and deploying to production using Textdrive. It''s basically a compilation of all the best guides I''ve found, plus a few new things I''ve come up with. I''d love to have you take a look and let me know what
2006 Feb 07
1
habtm :uniq causing duplicate inserts? How to update Rails?
Hello *Gem* experts, Sorry for asking multiple questions in one post but they are both related to one problem. So far I have the following code: class Member < ActiveRecord::Base has_and_belongs_to_many :blogs, :uniq=>true ..... end class Blog < ActiveRecord::Base has_and_belongs_to_many :members, :uniq=>true ... end The issue is that
2006 Jan 24
3
Merging two heavily referenced records into one
Here''s the situation: I have a "people" table whose "id" column serves as a foreign key to several other tables (authorships, editorships, members, users, etc.). Every now and then I will find two distinct records in the "people" table that represent the same human being. They generally differ by small differences in spelling but should really be the
2015 Feb 03
2
Another Fedora decision
On 2015-02-03, Scott Robbins <scottro at nyc.rr.com> wrote: > On Tue, Feb 03, 2015 at 01:53:45PM +0000, Timothy Murphy wrote: >> >> The first is "Don't use a palindrome" >> which makes me wonder if the author knows the meaning of this word. >> I suspect he/she thinks it means "a known word backwards". > > That's what I would call
2014 Oct 02
1
auth with entire email addr instead of just username
I am trying to configure a new IMAP based mail server. I thought I had everything correct. I have dovecot logging turned up and see that dovecot is processing the entire email address as the username like this... Oct 2 14:52:20 servername dovecot: auth: Debug: pam(testuser at domain.com,1.2.3.4): lookup service=dovecot ... and of course pam is reporting that as an invalid user. Moments ago when
2017 Aug 16
1
hard-link reference error when trying to delete
Hi, Kevin. Thank you for the suggestion. It triggered a memory that I had set some restrictions on this rsync copy a while back. Sure enough, in ~/.ssh/authorized_keys: command="rsync --server -vulogDtpre.iLsfxC --timeout=600 --bwlimit=5120 . dest" ssh-rsa Tacking on --delete in the appropriate spot fixed the issue. That's a big whoops on my part. :-) Appreciate the pointer.
2007 Jun 04
10
ActiveBudget - Track your money and learn Rails
I''ve worked as a freelance Rails developer for the past 6 months. Switching from a cushy salary to hourly work forced me to reevaluate my finances. Developing a budget came easily to me, but tracking my spending was annoying. I also needed a way to record my work across a number of jobs. The convergence of these needs lead to ActiveBudget. ActiveBudget is the software I use every day to
2015 Feb 03
2
Another Fedora decision
On Tue, Feb 3, 2015 at 11:20 AM, Scott Robbins <scottro at nyc.rr.com> wrote: >> >> I don't think anybody is missing anything. "Palindrome" in this context >> may not be limited to real words; the author may be suggesting that you >> not pick your password by picking a real word and tacking on its >> reverse to make a palindrome, e.g.,
2006 Jul 21
1
RE: Q: winbindd, unqualfied users, & name conflicts (a.k.a "Deathto 'winbind use default domain'!")
My opinion: Local users should always take precedence. People should specifically refer to local users as <SambaHostName>\localuser, if that is the form the SMB client insists on sending. Tacking on default domains and/or stripping domains to/from user names and "trying them out" is playing fast and loose with user identity and is a breeding ground for potential security holes.
2003 Dec 12
3
C++: Appending Values onto an R-Vector.
Hi folks. I posted this question a few days ago, but maybe it got lost because of the code I included with it. I'm having a problem using the SET_LENGTH() macro in an R extension I'm writing in C++. In a function within the extension I use SET_LENGTH() to resize R vectors so as to allow the concatenation of single values onto the vectors -- it's a "push back" function to
2013 May 28
0
[PATCH RFC] virtio-pci: new config layout: using memory BAR
"Michael S. Tsirkin" <mst at redhat.com> writes: > On Tue, May 28, 2013 at 12:15:16PM -0500, Anthony Liguori wrote: >> > @@ -455,6 +462,226 @@ static void virtio_pci_config_write(void *opaque, hwaddr addr, >> > } >> > } >> > >> > +static uint64_t virtio_pci_config_common_read(void *opaque, hwaddr addr, >> > +
2015 Feb 03
0
Another Fedora decision
On Tue, Feb 03, 2015 at 07:52:53AM -0800, Keith Keller wrote: > On 2015-02-03, Scott Robbins <scottro at nyc.rr.com> wrote: > > On Tue, Feb 03, 2015 at 01:53:45PM +0000, Timothy Murphy wrote: > >> > >> The first is "Don't use a palindrome" > >> which makes me wonder if the author knows the meaning of this word. > >> I suspect he/she
2015 Feb 03
0
Another Fedora decision
On Tue, February 3, 2015 11:37 am, Les Mikesell wrote: > On Tue, Feb 3, 2015 at 11:20 AM, Scott Robbins <scottro at nyc.rr.com> wrote: >>> >>> I don't think anybody is missing anything. "Palindrome" in this >>> context >>> may not be limited to real words; the author may be suggesting that you >>> not pick your password by