similar to: Model reloading problem

Displaying 20 results from an estimated 2000 matches similar to: "Model reloading problem"

2006 Jan 17
2
Rails Unit test Problem
Hi all, I have a problem with unit test database data reload. I have several test_xxx function in my ruby unit test file I would like to know why xxxx.yml containing test data are load only 1 time for all the test while specification say it done for before each test method. Thus my test_xxx are dependant of previous test This is a mistake, because the specs say the test data are reload
2007 Feb 18
2
SerializationTypeMismatch in Production Mode
In production mode, I keep getting this error the 2nd time it loads a page with a serialized attribute: ActiveRecord::SerializationTypeMismatch (answers_container was supposed to be a Array, but was a NilClass): /vendor/rails/activerecord/lib/active_record/base.rb:1964:in `unserialize_attribute'' In development, it works fine. In fact, if I set to false config.cache_classes in
2006 Feb 15
2
Ruby install tips
---------- Forwarded message ---------- From: Luciano Broussal <luciano.broussal@gmail.com> Date: Feb 15, 2006 5:00 PM Subject: [Rails] To: rails@lists.rubyonrails.org Hi all, Is anybody know how + to install a ruby application (persitent , after computer restart) in the system tray. Is any body know an installer to package ruby application and to compile it as an file .exe Thank you all
2006 Jan 05
2
Agile Depot Tutorial Help
anyone can explain me why in the Agile Depot Tutorial application they use i.product_id to find if a product already exist in the cart, because the cart contains items, each of them references a product. I tried i.product_id like in the tutorial and i.product.i all of these 2 notation works , but i find the second seems more clean??? isn''t it. Any explanation will be fine Regards
2010 Oct 11
5
Object lost in memory/trashed?
Hi, I''ve got a problem on which I''ve spent many hours, and I can''t get a clue on what is happening... I hope someone here will be able to help me. Here is the situation : my Rails app uses acts_as_commentable and acts_as_bookmarkable on a Diagram model. Everything''s working OK individually: I can create a comment on a Diagram, bookmark it, and so on. Now,
2006 Feb 22
1
ActiveRecord strange behavior
Hi all, I have a has_many relation between Parent and Child Parent p Child c p.children << c => create the relationship in the database (why not need p.save to see the child add?) why when i modifiy a field in c.how_old i have to explicity call to c.save if i want to see the modification in database (p.save doesn''t persist the modification of chlild c) because when i modify
2020 Jul 07
3
libssh2 is hanging during a file transfert
I'm trying to send data to a server with openssh 7.9p1, but it's hanging somewhere. the client stop at the line : Jul 7 11:52:16 TOTO sshd[19553]: debug3: channel 0: will not send data after close and after 5 minutes the client closes the connection, why ? This is the trace of the server openssh : ( DEBUG3 level) Jul 7 11:52:15 TOTO sshd[31175]: debug3: fd 6 is not O_NONBLOCK Jul
2003 Jul 15
3
How to read in data
Hello, I'm new to R and in the process of testing it My first question: I fail to read in my data (ANSI toto.txt file, tab separated) > test <-read.table("toto.txt") Error in file(file, "r") : unable to open connection In addition: Warning message: cannot open file `toto.txt' > test <-
2006 Mar 09
5
Newbie - Help Please
I am just getting off the ground with RoR. (actually just walking out to the runway) I want to setup a development / test environment as close to the production environment as possible except for OS (Win XP for Dev, Linux for Prod). I have Apache, MySQL, PhP installed and operating close enough to the production environment that all the PhP stuff I''ve done in the past seems to work
2010 Dec 12
3
Toto blog date issue - production only, localhost fine
I have this listed in the Toto Issues list on Git and know that it is affecting one other person and so far no ideas... just want to throw it out here if anyone else has had the issue or better yet has a fix: I have a pretty stock instance of Toto. Locally I run it on thin and everything works. When I push it to heroku, the index loads but on every article, instead of showing the date in the
2008 Oct 29
2
Problem using samba with ldap
Hello, I've just installed samba with ldap on a debian etch. I have a problem when i attempt to create a user with the command smbldap-useradd -a -P -c "toto DUPONT" -u 1001 toto and to log in with it after. I obtain this error : [2008/10/29 17:35:26, 0] passdb/pdb_get_set.c:pdb_get_group_sid(164) pdb_get_group_sid: Failed to find Unix account for toto [2008/10/29 17:35:26, 1]
2006 Jul 13
2
simple question about variables....
Dear R users, I have a simple question on variable manipulation. Imagine I have an object "OBJ" that has "toto" as one of its variables. I would like to understand why if I do > varname <- "toto" >OBJ$varname returns no results whereas > OBJ[varname] returns the column entitled
2008 Jul 30
1
model mix problem. FALSE CONVERGENCE
Hi R users I try to use the lme but I can?t!!!!! My script is (some words in french, sorry!!): rm(list=ls(all=TRUE)) #Efface tous les objets en m?moire pour ?viter des erreurs library(MASS) #Chargement des Librairies library(car) library(Hmisc) library(tkWidgets) library(svDialogs) library(multtest) library(nlme) #Rep <- "C:/Documents and Settings/U3M/Bureau/steph/Scripts
2005 Feb 01
2
forcing a file to have the same uid from parent directory
Hi, I have a little problem, sometimes the administrator must put a file in a home directory. But the owner of this file is root, not the user which have the home directory. Example : /rsrv/data1/home/toto toto Utilisateurs 0700 + toto.id root Administrateurs 0700 + fichier.xls toto Utilisateurs 0700 I would like to kown how I set up my
2010 May 25
1
using the name of an argument in a function
Hi all, In a function, I need to get the name of a variable that has been used to call the function. For example, I want: --- 8< ------ toto <- 3 fun <- function(y){ nameOfY <-deparse(substitute(y)) cat("name is ",nameOfY) } fun(toto) # [1] name is toto --- 8< ---- But deparse(substitute(y)) does not work all the time, especially when we use generic function.
2012 Jun 21
1
Unable to connect to CIFS host
Hello, I'm using samba 3.5.11 to connect a Windows 2003 Active Directory. With cups, samba is an part of a print server used to print to windows desktop shared printers. DNS are Active Directory Integrated. Network is both IPV4 and IPV6, IPV6 for Linux and Windows Vista and above. Some times, some users are not able to print. In logs of cups, I see to thinks "Unable to connect CIFS
2024 Feb 06
1
[EXTERNAL] Re: NOTE: multiple local function definitions for ?fun? with different formal arguments
Here's a dummy example that I think illustrates the problem: toto <- function() { if (runif(1) < 0.5) function(a) a else function(a,b) a+b } > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) [1] 3 > fcn <- toto() > fcn(1,2) Error in fcn(1, 2) : unused argument (2) How can you use the returned function, if you get different arguments?
2006 May 16
1
variable row names
Hy all, I wish to use a variable as rownames for a set of datas. By example : > nom<-"toto" > prenom<-"tutu" > res<-c(1,2) > res<-t(res) > res [,1] [,2] [1,] 1 2 > colnames(res)<-c(nom,prenom) > res toto tutu [1,] 1 2 > nom [1] "toto" > I wish to call the rowname by the
2014 May 09
1
samba4 : [kerberos part kinit work but no kpasswd
hi, ? i have recently installed a samba 4 in a DC role. The distribution is a debian jessie/sid, the version of samba is 4.1.7. The server is globally working but there is some litle trouble. on the server itself, i can do a kinit without probleme but if i try a kpasswsd, i obtain the following ? root at station:/var/log/samba# kinit Password for administrator at TOTO.FR: root at
2010 May 20
6
writing function
Dear group, I am trying to write functions, but as a beginner, everything is not so obvious. Let's say I want the results in a list of elemts like this : tot1, tot2, etc Here is a function: toto <- function(x,y) { for(i in x:y){ paste(c("tot",i),collapse="")<-(i*2) } } If I type this : >toto(1,5) I get this message error: Error in paste(c("tot",