search for: antsmailinglist

Displaying 5 results from an estimated 5 matches for "antsmailinglist".

2011 Apr 06
2
Wish List: has_many :dependent => {}
I am after a nice way to disable (not destroy, delete nor nullify) all associated records. I''m a hoarder, I don''t want to get rid of anything but I want to stop records being visible. I have a disabled boolean in my tables and if I disable the top record in the association (say the association is 5-6 levels deep), I would like to cleanly disable its children. I''ve
2011 Dec 07
2
Question About Separation Of Concerns (ActiveRecord)
Hello, I''m a bit stuck with where to put some method calls (separation of responsibility) and although I''m trying to do it just simply now in the models, I think my problem raises a bigger question about Fat Models. But that''s another subject for another day. Right now, I have .... Event has_many meetings ## has an a invitation_expiry date field. def
2009 Aug 28
0
Nil object nightmare
I''m having a real problem with nil objects in a view I''m playing with. if I type ... <%= debug lesson.lesson_register.attendees %> I get the following displayed in the browser .... - !ruby/object:Attendee attributes: enrollee_id: "25" created_at: 2009-08-27 15:10:41 updated_at: 2009-08-27 15:10:41 id: "1" attended: f
2010 Jun 24
0
Nested Model Forms
I''m trying to get a multi level nested form model working but have hit a problem. In one of my models, I have a habtm association and it''s throwing an error on a nested form and these are check boxes with a method of ''time_unit_ids[]''. The nested forms work without the habtm (time_unit_ids[]) so things are pretty much set up okay. Here''s the set up
2011 Aug 22
0
Authlogic and Authlogic-OID Question
Hello,I was wondering if anyone was using these and if so, hopefully you could explain something to me. When User::create is called when using an open_id, User::create gets called twice and the second call clears out the session. The first call to User::create deletes a row from open_id_authentication_associations and then inserts a new row into the same table. It then sets up the request to