similar to: How to hook into model attribute changes?

Displaying 20 results from an estimated 9000 matches similar to: "How to hook into model attribute changes?"

2007 Jan 04
6
after_update attributes problem
Hey guys, I''m having a hard time w/ the after_update callback on rails... As far as I can tell, when I define a after_update callback on a model, the attributes of the object have the same values that they had *before* Base.save was called. I''m probably wrong so here''s the code: UNIT TEST: def test_register_item_adjusts_account_balance account =
2016 Apr 08
2
Samba as AD-Controller: unable to update policies and call start scripts
Zitat von Rowland penny <rpenny at samba.org>: >> Maybe is it possible that my tries with Samba as AD (this is my first >> installation of Samba 4 as AD controller) damages the AD-data? > > Well if it works for one PC and not another, it is probably a > problem with the second PC. Now I cannot update GPO on the first PC, too... The very strange thing is, that
2016 Apr 08
5
Samba as AD-Controller: unable to update policies and call start scripts
This is correct >>that gpupdate tries to copy somethings from \\cch.intra\sysvol and not from \\dc1\sysvol... >>There a no server with name cch.intra, this is just the Realm... No not REALM, but DNSdomain but with the same name as the REALM.   You “should” be able to “ping cch.intra” or browse to \\cch.intra   if not, then your missing dns records.     If you have only
2008 Jun 12
1
cch function and time dependent covariates
----- begin included message In case cohort study, we can fit proportional hazard regression model to case-cohort data. In R, the function is cch() in Survival package Now I am working on case cohort analysis with time dependent covariates using cch() of "Survival" R package. I wonder if cch() provide this utility or not? The cch() manual does not say if time dependent covariate is
2016 Apr 08
3
Samba as AD-Controller: unable to update policies and call start scripts
Zitat von Sébastien Le Ray <sebastien-samba at orniz.org>: >> The very strange thing is, that gpupdate tries to copy somethings >> from \\cch.intra\sysvol and not from \\dc1\sysvol... >> There a no server with name cch.intra, this is just the Realm... > > Thats expected. your.realm should resolve to all your DC in a > round-robin fashion. OK, I didn't
2016 Apr 11
2
Home directory of AD-User
Rowland penny <rpenny at samba.org> schrieb: > Can you post your entire smb.conf > What OS ? > What Samba version ? Samba 4.1.6 on Ubuntu 14.04. My smb.conf: # Global parameters [global] workgroup = CCH realm = CCH.INTRA netbios name = MAIN interfaces = lo, br50 bind interfaces only = Yes server role = active directory domain
2016 Apr 11
2
Home directory of AD-User
Hi list! I deleted completely Samba on my Server and reinstalled it again. Now it seems to work, but I have a little problem: if I try to access the home directory of a user and write something, the owner of the created directory/file is a UID, but not the user itself... Could someone help me? This is the definition of the share in my smb.conf: [homes] comment = Home Directories
2013 Aug 23
1
A couple of questions regarding the survival:::cch function
Dear all, I have a couple of questions regarding the survival:::cch function. 1) I notice that Prentice and Self-Prentice functions are giving identical standard errors (not by chance but by programming design) while their estimates are different. My guess is they are both using the standard error form from Self and Prentice (1986). I see that standard errors for both methods are
2008 Jun 16
1
回复: cch() and coxph() for case-cohort
I tried to compare if cch() and coxph() can generate same result for same case cohort data Use the standard data in cch(): nwtco Since in cch contains the cohort size=4028, while ccoh.data size =1154 after selection, but coxph does not contain info of cohort size=4028. The rough estimate between coxph() and cch() is same, but the lower and upper CI and P-value are a little different. Can we
2016 Apr 08
3
Samba as AD-Controller: unable to update policies and call start scripts
Rowland penny <rpenny at samba.org> schrieb: > I think you will find this is the sharepath of the sysvol directory on > the DC, i.e. on a self compiled Samba it will be: > > [sysvol] > path = /usr/local/samba/var/locks/sysvol > read only = No > > What I think you are un-aware of is, the sysvol dir is not synced > between DCs, so your sysvol
2007 Sep 21
1
Temporary disabling after_update
Hi, I am trying to replace my old database trigger with ActiveRecord callbacks in rails. I have a model like following: class Action < ActiveRecord::Base belongs_to :inquiry def after_update #clean up all action associated with the inquiry. Action.update_all("latest = ''''", ["inquiry_id = ?", self.inquiry_id]) #find the latest action
2016 Apr 07
2
Samba as AD-Controller: unable to update policies and call start scripts
Hi list! I have an Ubuntu 14.04 Server with Samba 4.1.6 acting as Active Directory controller. I worked 'till today, now I tried to join a new PC to the domain and it does not work... Problems: start and shutdown scripts are NOT called at all, logon scripts are called on the first PC, but not in the new one. The new PC did not receive the policies and did not mount the shares. gpupdate
2008 Sep 24
1
Clearing cached results
I''m trying to figure out how to clear the for a worker from my controller. In my aysnc_xxx process I set cache[key]. However, I don''t see an easy way to clear the cache from a controller with invoking something on the worker. What I was looking for was something like MiddleMan(:worker_name, :worker_key_name).cache[key]= Is there something like that and I''m just
2004 Jan 25
1
Puzzled about PAM support in OpenSSH-3.7.1p2
I'm trying to understand the code around PAM support in auth2.c and auth2-chall.c. I'm working with the OpenSSH 3.7.1p2 sources on FreeBSD 4.x. The scenario I'm trying to make work is SSH login to a captive accout for users in a RADIUS database but whose login does not appear in /etc/passwd or getpwnam(). I understand that if the username is not found in getpwnam(), then the
2016 Apr 08
1
Samba as AD-Controller: unable to update policies and call start scripts
Zitat von Sébastien Le Ray <sebastien-samba at orniz.org>: > Did you try a samba-tool ntacl sysvolreset on the DC? (actually… > that almost never fixed anything in my case but why not) I just tried to run "samba_dnsupdate --verbose --all-names" on the DC and I got many "Failed nsupdate: 2" and at the end "Failed update of 21 entries". Attached is
2006 Jun 25
4
Zebra Striping a Collection of Partials
I''m using render to display a collection of partials, where each partial is a table row. Is it possible to zebra-stripe the table using this method i.e. alternate table rows get a different CSS class? I can''t work out how each row partial would know whether it was odd or even. In the normal scheme of things I could do: <% odd_or_even = 0 for asset in @assets
2006 Feb 22
3
after_update: old, new values?
With after triggers in Postgres, there are special NEW and OLD vars accessible to trigger functions. Any such thing in Rails? Or would it entail doing something like setting a class var in before_update? Jack -- Posted via http://www.ruby-forum.com/.
2010 Dec 06
10
testing chapter: agile web dev withrails
I am working my way through Agile web development with rails and I''m in the testing chapter. when I run the following test(or any other test) I''m new and not sure where to start looking. require ''test_helper'' class ProductTest < ActiveSupport::TestCase # Replace this with your real tests. test "the truth" do assert true end end I
2006 Jun 03
3
Disable Migration creation in generate Model
Hi.... Is there some way to configure Rails to not create a db/migrate/###_model_name.rb when I do a script/generate model ModelName? It''s a little annoying when I''m setting up a new application since I prefer creating all the first tables in a 001_inital_schema.rb file. Then when I generate models for those tables I get migration scripts for all of them again that I have to
2007 Nov 18
2
Aptana RadRails 0.9.1 Final Release
For fellow Radrails users, there is happy news ! Aptana RadRails 0.9.1 Final Release has been released since 15th November 2007. Users who are still on 0.8.0 are highly recommended to upgrade. Here''s the Trac changelog: http://www.aptana.com/trac/milestone/RadRails%20IDE%200.9.1 And the ASAP one: http://support.aptana.com/issues/browse/ROR/fixforversion/10004 Apparently, 66 tickets