similar to: Testing association definitions...

Displaying 20 results from an estimated 10000 matches similar to: "Testing association definitions..."

2006 Apr 08
2
respond_to causes DoubleRenderError?
I have a custom authentication plugin that redirects users to a login site if they aren''t already authenticated and their session hasn''t timed out. I had things working fine with straight http requests, but wanted to add support for ajax requests. I thought this would be a simple matter of replacing all of my "redirect_to <blah> and return false" calls with
2012 Apr 10
6
User Association
Please Im trying to create an application where i can post like twitter, but i was the users name to be posted under their respective posts My Post_controller looks like this def index @posts = Post.all(:order => "created_at DESC") @users = User.find(:all) #@user_id = current_user.find(params[:id]) respond_to do |format| format.html end end def create
2011 Jul 11
2
Pre-populating association
Hello, I think this is an easy one for the average Rails developer but I''m a bit stuck. I''m creating a simple voting app: any user can create a survey, with any number of questions, and other users can then vote by creating a ballot for that survey. Here''s the modeling: class Survey < ActiveRecord::Base has_many :questions has_many :eligibilities has_many
2007 Sep 10
2
Removing an AR class definition, for testing plugins
I''m writing an acts_as_* plugin and am trying to BDD it. Ideally my specs would look like: describe ActsAsCloneable, " basic cloning" do load_example_classes School.class_eval do acts_as_cloneable end before(:each) do @old_school = School.create! :name => "Baylake Pines", :city => "Virginia Beach", :guid => "abc123"
2008 Nov 19
3
Overwriting / Decorating ActiveRecord association accessor
Hi, I am trying to overwrite the accessor of a has_many association. Basically my class looks like this: class Person has_many :emails has_one :link, :class_name => ''PersonProxy'' def emails_with_link link.emails + emails_without_link end alias_method_chain :emails, :link end Now that works fine if I only access the collection like >>
2018 Jul 19
0
Cannot contact any KDC for requested realm
On Thu, 19 Jul 2018 17:33:46 +0200 Anton Blau via samba <samba at lists.samba.org> wrote: > Am 19.07.2018 um 10:03 schrieb Rowland Penny via samba: > > On Wed, 18 Jul 2018 23:21:41 +0200 > > Anton Blau via samba <samba at lists.samba.org> wrote: > > > >> Am 18.07.2018 um 14:17 schrieb Rowland Penny via samba: > >> > > It is touched on here:
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
2018 Jul 19
2
Cannot contact any KDC for requested realm
Am 19.07.2018 um 10:03 schrieb Rowland Penny via samba: > On Wed, 18 Jul 2018 23:21:41 +0200 > Anton Blau via samba <samba at lists.samba.org> wrote: > >> Am 18.07.2018 um 14:17 schrieb Rowland Penny via samba: >> > It is touched on here: > > https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller#Parameter_Explanation >
2018 Jul 19
0
Cannot contact any KDC for requested realm
On Wed, 18 Jul 2018 23:21:41 +0200 Anton Blau via samba <samba at lists.samba.org> wrote: > Am 18.07.2018 um 14:17 schrieb Rowland Penny via samba: > > On Wed, 18 Jul 2018 13:49:39 +0200 > > Anton Blau via samba <samba at lists.samba.org> wrote: > > > > Hmm, your REALM is 'SMBDOMAIN.FILE.DUCK' but your dnsdomain appears > > to be just
2010 Jun 02
1
Problems using gamlss to model zero-inflated and overdispersed count data: "the global deviance is increasing"
Dear all, I am using gamlss (Package gamlss version 4.0-0, R version 2.10.1, Windows XP Service Pack 3 on a HP EliteBook) to relate bird counts to habit variables. However, most models fail because “the global deviance is increasing” and I am not sure what causes this behaviour. The dataset consists of counts of birds (duck) and 5 habit variables measured in the field (n= 182). The dependent
2006 Feb 23
5
Access to session from plugins
Hi! I am writing an acts_as_ plugin and i need to access session data from it. But i cant find any information if this is possible? And if it is, how. Cheers! Mathias
2019 Jan 13
0
winbind failed to reset devices.list was: samba.service is masked (Debian 9)
On Sun, 13 Jan 2019 14:01:36 +0100 Anton Blau via samba <samba at lists.samba.org> wrote: > > > > Can you post the contents of the following files: > > > > /etc/hostname > > /etc/hosts > > /etc/resolv.conf > > Sorry, this is my > > -> smb.conf > > # Global parameters > [global] >         netbios name = FILESERVER >
2018 Jul 23
0
Cannot contact any KDC for requested realm
On Mon, 23 Jul 2018 23:09:58 +0200 Anton Blau via samba <samba at lists.samba.org> wrote: > Am 19.07.2018 um 17:50 schrieb Rowland Penny via samba: > > On Thu, 19 Jul 2018 17:33:46 +0200 > > Anton Blau via samba <samba at lists.samba.org> wrote: > > > >> Am 19.07.2018 um 10:03 schrieb Rowland Penny via samba: > >>> On Wed, 18 Jul 2018 23:21:41
2018 Jul 18
2
Cannot contact any KDC for requested realm
Am 18.07.2018 um 14:17 schrieb Rowland Penny via samba: > On Wed, 18 Jul 2018 13:49:39 +0200 > Anton Blau via samba <samba at lists.samba.org> wrote: > > Hmm, your REALM is 'SMBDOMAIN.FILE.DUCK' but your dnsdomain appears to > be just 'duck' > > Rowland > I read https://wiki.samba.org/index.php/Active_Directory_Naming_FAQ - but I am not sure that my
2005 Jun 25
2
observing a habtm association
Is there some way to observe when an association is added in a habtm relationship? I know I could turn the relationship into a model, but I don''t want to give up using :include in my finds... joshua
2007 Mar 26
2
Failure creating model in spec setup not reported?
Hi I''ve just tracked down a wierd error that AFAICT is caused by an error not being raised in the setup: context "An Asset" do setup do @provider = Provider.create(:name => "Provider1") @product = Product.new(:name => "Product1", :provider => @provider) @applicant = Applicant.new(:first_name =>
2009 Dec 28
1
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Hi, I can't get access to any shares when running "smbclient //DUCK/test -U Dominic". I'm getting the message: tree connect failed: NT_STATUS_BAD_NETWORK_NAME I'm pretty sure it's authenticating properly as it says "session setup ok" in the debug output. If I enter the wrong password I get: "session setup failed: NT_STATUS_LOGON_FAILURE" I'm
2010 Sep 26
0
[LLVMdev] What is the canonical way to build on Solaris 10?
Hi, I am trying to get r114797 to build on Solaris 10u6 (5.10 Generic_142901-03). gcc 4.2 is installed and configured with: -bash-3.00$ /opt/gcc4/bin/gcc -v Using built-in specs. Target: i386-pc-solaris2.10 Configured with: ./configure --prefix=/opt/gcc4 --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++ Thread model:
2018 Jul 23
2
Cannot contact any KDC for requested realm
Am 19.07.2018 um 17:50 schrieb Rowland Penny via samba: > On Thu, 19 Jul 2018 17:33:46 +0200 > Anton Blau via samba <samba at lists.samba.org> wrote: > >> Am 19.07.2018 um 10:03 schrieb Rowland Penny via samba: >>> On Wed, 18 Jul 2018 23:21:41 +0200 >>> Anton Blau via samba <samba at lists.samba.org> wrote: >>> >>>> Am 18.07.2018 um
2006 Jun 01
2
Migrating Data from Many Databases to One
I had some concerns about breaking Rails table relationships (:has_many, :has_and_belongs_to_many, :belongs_to, :acts_as_*, etc) when moving multiple databases (using the same application) into one. I seem to be stuck when trying to wrap my head around a good database design for what I would like to do or if I am just completely not thinking straight. I guess this isn''t related