Displaying 20 results from an estimated 3000 matches similar to: "Dynamic # of Attributes for a Model (key/val table) Get/Set?"
2005 Dec 21
2
ActiveRecord Error with << in Collection
Hi
I get a following error:
ActiveRecord::AssociationTypeMismatch in Cmdb#create
ConfigurationItemAttributeValue expected, got Array
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations/association_collection.rb:128:in
`raise_on_type_mismatch''
2006 Jan 19
4
hash fixture access broken in functional test
I have a functional test class that uses the "topics" fixture. I
verified that the fixture is loaded into the database by doing this:
assert_equal 2, Topic.find_all.size
So I should have an instance variable called @topics and instance
variables for each of the rows in the fixture, in this case, @first and
@another. But all those variables are nil inside my test method.
Is that
2005 Dec 29
14
Rails 1.0 - Agile book still good?
I''m new to Ruby and RoR but excited to learn what I can do with RoR; I
have Pickaxe second edition and want to get "Agile Web Development with
Rails" but I''m aware that the book was published some while before RoR
version 1.0 was released. Has a lot changed since then, and would I
therefore be advised to wait for a second edition of AWDwR?
Many thanks in advance
2006 Nov 23
2
Some tips for testing respond_to block and making controller tests work with simply_helpful
Hi,
Here''s two blog posts for those that need to test respond_to blocks
and/or are currently using simply_helpful extensively.
http://blog.methodmissing.com/2006/11/22/testing-different-content-
types-with-rspec
http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with-
rspec-controller-tests
- Lourens
2007 Apr 20
1
simply_helpful and edge
Does anyone have view specs running on edge with simply_helpful?
I tried
http://blog.methodmissing.com/2006/11/23/using-simply_helpful-with-rspec-controller-tests/but
it seems that was written for pre-9 versions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/rspec-users/attachments/20070420/0bc8d366/attachment.html
2006 Oct 28
5
Seperate admin and public views using one controller REST CRUD
Hello,
I want to seperate my admin and public views but only use one
controller. How to seperate layouts ist clear but how can I tell the
controller to render the *.rhtml files in views/admin/ when logged in or
render the *.rhtml files in views/public/ (for example).
Thanks for any help!
PS: using REST and CRUD in edge rails
--~--~---------~--~----~------------~-------~--~----~
You received
2006 Nov 24
13
rSpec on Rails 1.2?
I just updated my Rails install to the most current Edge and my
controller specs fail:
1)
TypeError in ''The User Controller should be a user controller''
can''t convert nil into String
Each spec fails the same way.
<context string> <spec string>
can''t convert nil into String
Any ideas what''s up with this?
Thanks,
s.ross
2007 Oct 25
0
Shouldn't <% fields_for "company[product_attributes]", product do |form| %> return an array?
This is giving me a hash of product_attributes, but I thought it was
supposed to return an array. This is shown in railscast 73 but my
results are different. Am I missing something?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2009 Mar 05
3
Connection Pooling on Rails 2.2.2 (Windows Vista)
Hi,
I''m trying to setup rails 2.2.2 pool connections to MySQL by
specifying the pool setting with 5 in database.yml but no hope.. It
doesn''t work.
My rails is running on webrick in the production mode and the webrick
is launched by RadRails.
Even though I send multiple requests to my app on rails at the same
time, it seemed only one connection is shared ( pooled ).
I also
2011 Jul 15
1
validate survival with val.surv
Dear R users:
I want to externally validate a model with val.surv.
Can I use only calculated survival (at 1 year) and actual survival?
Or I needed the survival function and actual survival.
Thanks
*Yao Zhu*
*Department of Urology
Fudan University Shanghai Cancer Center
Shanghai, China*
[[alternative HTML version deleted]]
2012 Oct 03
0
[klibc:master] [PATCH] fix ARM longjmp with zero 'val'.
Commit-ID: f05ff116bb9edbbb81d82fa47b78e630ce878470
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=f05ff116bb9edbbb81d82fa47b78e630ce878470
Author: Bill Pringlemeir <bpringle at sympatico.ca>
AuthorDate: Tue, 2 Oct 2012 13:29:52 -0400
Committer: maximilian attems <max at stro.at>
CommitDate: Wed, 3 Oct 2012 18:41:43 +0200
[klibc] [PATCH] fix ARM longjmp
2011 Aug 20
1
val.surv
Dear R-users,
I have two questions regarding validation and calibration of Survival regression models.
1. I am trying to calibrate and validate a cox model using val.surv.
here is my code:
f.1<-cph(Surv(time,event)~age, x=T, y=T, data=train)
test1<-test[,"age"]
val.surv(f.1, newdata=data.frame(test1), u=10)
but I get an error message:
Error in val.surv(f.1, newdata
2007 Dec 17
0
odd error messages coming from val.prob() {Design}
Hi,
after upgrading my R install from 2.5 -> 2.6.1 and performing multiple
iterations of update.packages(), I am getting an odd error when trying to
plot a calibration curve from the val.prob() function in package Design.
when running this function (which used to work) I get the following error
message:
Error in .C("lowess", x = as.double(xy$x[o]), as.double(xy$y[o]), n,
2007 Feb 21
0
japanese chars output as "?????" or garbage val in rails app
Guys,
In my rails app the japanese chars output as "?????" or garbage
value. I
have searched the forum get some help but I am not clear about the
tropic
I use InstantRails 1.4, In the package mysql version is 4.1.9.
So please help me in the points
0.What will be the mysql(version 4.1.9) collation? (I used
latin1_swedish_ci)
1. any change in database.yml configuration?
2. What
2016 Apr 28
0
Snowfall - Error in checkForRemoteErrors(val) with sfClusterApplyLB()
Hello,
I'm trying to run a code that uses the snowfall package. Here is the structure of my code.
sfInit(parallel=T, cpus = 5, slaveOutfile="ErrorMessage.txt")
sfExportAll()
sfLibrary(rgdal)
sfLibrary(raster)
sfLibrary(sp)
sfLibrary(rgeos)
sfLibrary(snowfall)
system.time( sfClusterApplyLB(1:10, function(k) {
sfCat(paste("Iteration ", k),
2017 Dec 14
0
Xen PV DomU running Kernel 4.14.5-1.el7.elrepo.x86_64: xl -v vcpu-set <domU> <val> triggers domU kernel WARNING, then domU becomes unresponsive
On Mon, Dec 11, 2017 at 4:52 PM, Adi Pircalabu <adi at ddns.com.au> wrote:
> Has anyone seen this recently? I couldn't replicate it on:
> - CentOS 6 running kernel-2.6.32-696.16.1.el6.x86_64,
> kernel-lt-4.4.105-1.el6.elrepo.x86_64
> - CentOS 7 running 4.9.67-1.el7.centos.x86_64
>
> But I can replicate it consistently running "xl -v vcpu-set <domU>
2010 Aug 13
1
val.prob in the Design package - Calibrated Brier Score
Hello,
I am using the val.prob function in the Design package. I understand how
the Brier quadratic error score is calculated, but I do not know how the
Brier score computed on the calibrated rather than raw predicted
probabilities (B cal) is calculated. My question is: how are the calibrated
probabilities calculated? Any explanation of this, or references to
explanations of this, would be
2012 May 22
0
Interpreting output from the val.prob function in the rms package
Dear mail-list,
I have used the val.prob function from the rms package to validate a logistic regression model. It is however not clear to me how to interpret the two different curves that are generated (logistic vs. nonparametric). The documentation doesn't enter into any detail on this point, and to a non-statistician like myself it isn't obvious.
If I compare the output to that of the
2012 Oct 02
2
[PATCH] fix ARM longjmp with zero 'val'.
[klibc] [PATCH] fix ARM longjmp with zero 'val'.
We need to set the condition codes on the ARM. The previous version was
using a left over condition code from the caller. Also, use conditional
execution to eliminate branch and reduce size.
Signed-off-by: Bill Pringlemeir <bpringle at sympatico.ca>
diff --git a/usr/klibc/arch/arm/setjmp.S b/usr/klibc/arch/arm/setjmp.S
index
2018 Feb 08
0
[PATCH v28 3/4] mm/page_poison: add a function to expose page poison val to kernel modules
Move the PAGE_POISON value to page_poison.c and add a function to enable
callers from a kernel module to get the poison value if the page poisoning
feature is in use. This also avoids callers directly checking PAGE_POISON
regardless of whether the feature is enabled.
Signed-off-by: Wei Wang <wei.w.wang at intel.com>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: Michal Hocko