Displaying 13 results from an estimated 13 matches similar to: "how to remove changed_attributes from yaml response"
2006 Sep 04
2
"include" versus "extend" - what's the difference
Hi,
Just wondering when one would use "include" over "extend"? Both seem to
bring in methods to the class no?
The context is I''m just trying to understand why both are used with the
acts_as_audited plugin:
Full extract from plugin (used within here):
==================================================
# Copyright (c) 2006 Brandon Keepers
#
# Permission is hereby
2006 May 17
0
acts_as_versioned with lock_version bug?
Hello.
The acts_as_versioned plugin works fine ... till the adjunction
of optimistic locking via the lock_version table column.
Here is the problem description:
Without optimistic locking things are fine:
# ++++ The table creation migration ++++
% cat db/migrate/001_create_tables.rb
class CreateTables < ActiveRecord::Migration
def self.up
create_table :softwares,
2010 Mar 23
0
Frozen hash problem
I''d like to delete some records before saving them. I ran this
experiment:
before_save :prune_lab_datas
def prune_lab_datas
lab_datas.each do |lab_data|
lab_data.destroy
end
raise lab_datas.to_yaml
end
But nothing seems to be deleted in the hash:
---
- &id001 !ruby/object:LabData
attributes:
created_at: 2010-03-21 22:16:06
unit_id: "3"
2011 Oct 02
4
Aggregated attribute changed but _was is changed too. So nothing is update in database.
(Frenchy, sorry =) )
Hi everyone, i''ve got some troubles with aggregated attribute.
I created a point and path class which receive postgresql point and
path type data. Path object contains an array of point object.
I''m currently working on a "hunting" module in web browser based game,
and i need a crontab executed every n minutes to move the character on
the map.
2006 Apr 17
5
Finding out updated fields
Hi,
When we update a record via an update form, is there an easy way to find
out the fields that have been changed. If the update is successful, i
want to display:
The following fields have been changed:
field-name = new-value
...
Thanks,
Lantis.
--
Posted via http://www.ruby-forum.com/.
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All,
I have some strange problem which appears only on heroku hosting 2.3.5
default stack (not on my local computer)
I have some models. Here they are:
class Contact < ActiveRecord::Base
belongs_to :user
belongs_to :type, :class_name => "ContactType", :foreign_key =>
"type_id"
validates_presence_of :name, :on => :create, :message =>
2008 Jul 25
1
glht after lmer with "$S4class-" and "missing model.matrix-" errors
Hello everybody.
In my case, calculating multiple comparisons (Tukey) after lmer
produced the following two errors:
> sv.mc <- glht(model.sv,linfct=mcp(comp="Tukey"))
Error in x$terms : $ operator not defined for this S4 class
Error in factor_contrasts(model) :
no 'model.matrix' method for 'model' found!
What I have done before:
> sv.growth <-
2008 Jul 25
0
glht after lmer with "$S4class-" and "missing model.matrix-" errors with DATA
maybe it's in the data? So here it comes.
> sv.growth
Grouped Data: length ~ meas | box_id
meas spec comp water box_id sprouts leaves length
long.sprout
1 1 Sv control moist 1 8.800000 37.80 211.2000
60.6
2 1 Sv xfull moist 2 7.000000 8.00 174.8000
62.8
3 1 Sv control moist 3 9.000000
2019 Dec 11
3
Friedman
Estimados
Este es el test de friedman que se logra asi
library(PMCMR)
y <- matrix(c( 3.88, 5.64, 5.76, 4.25, 5.91, 4.33, 30.58, 30.14, 16.92,
23.19, 26.74, 10.91, 25.24, 33.52, 25.45, 18.85, 20.45,
26.67, 4.44, 7.94, 4.04, 4.4, 4.23, 4.36, 29.41, 30.72,
32.92, 28.23, 23.35, 12, 38.87, 33.12, 39.15, 28.06, 38.23,
26.65),nrow=6, ncol=6,
dimnames=list(1:6,LETTERS[1:6]))
print(y)
2018 Mar 23
0
lmtp service timeouting even after receiving full message
On Thursday 22 of March 2018, Arkadiusz Mi?kiewicz wrote:
> I have a problem with some messages passed from exim to dovecot lmtp
> service:
>
> From exim debug:
>
> using socket /var/run/dovecot/lmtp
> LMTP<< 220 mbox8 ready
> LMTP>> LHLO mbox8...
> LMTP<< 250-mbox8
> LMTP<< 250-STARTTLS
> LMTP<< 250-8BITMIME
>
2018 Mar 23
2
lmtp service timeouting even after receiving full message
On 23.03.2018 10:04, Arkadiusz Mi?kiewicz wrote:
> On Thursday 22 of March 2018, Arkadiusz Mi?kiewicz wrote:
>> I have a problem with some messages passed from exim to dovecot lmtp
>> service:
>>
>> From exim debug:
>>
>> using socket /var/run/dovecot/lmtp
>> LMTP<< 220 mbox8 ready
>> LMTP>> LHLO mbox8...
>> LMTP<<
2008 Jun 17
1
Problems with Cochrane-Orcutt procedures
Hi John,
Hi Folks/Prof. Fox,
I found some code John Fox had written sometime back on the
Cochrane-Orcutt and Prais procedures here:
https://stat.ethz.ch/pipermail/r-help/2002-January/017774.html
I thought I would try it out and get the following errors below. Was
wondering if anyone had any immediate opinions why this might be ?
The linear model is the object regrCMSlm .
Thanks,
Tolga
2012 Nov 05
1
custom function & missing value where TRUE/FALSE needed
I can't figure out why this function wont work.
#Custom Function used
fallInBand <- function(x){
#Assume the bands fall go up form 0 to 100 in intervals of 5 then from 100
to 1000 in intervals of 100.
#returns the location (band number)
if (is.na(x) == FALSE) {
if(x < 100) {#bands of 5
if((x %% 5) >=0){#falls within the band
Result = as.integer(x/5)+1