Displaying 20 results from an estimated 200 matches similar to: "Eager loading ActiveRecord objects"
2008 Dec 13
4
Reuse of Cucumber Features
What''s the best way to handle a requirement that shows up as a
sub-requirement requirement in other features? For example let''s say users
can enter dates in various forms throughout my application. There is one
set of global rules specifying the formats in which dates may be entered,
and how they are interpreted. I put that in one feature. In various other
features, like
2006 Jan 01
2
Resin and RAILS
Anybody use Resin''s (http://www.caucho.com) FastCGI support with Rails?
I''m seeing performance very close (almost the same) to what I''m seeing
with Lighttpd. Nothing scientific but just a quick test using Apache''s
wb and JMeter. (Might be interesting to other Java/Rails folk or
Java/PHP/Rails folk. I have no connection to Caucho and the tests were
done with
2006 May 13
1
Rake clone bug?
Hi. I''m having a problem with my testing. The following table in my
development database (MySQL 4.1.12, InnoDB):
+-----------------------+------------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default |
Extra |
+-----------------------+------------------------+------+-----+---------+----------------+
|
1998 Mar 30
2
R-beta: Not loading C library
I've been using R for the last few weeks, but not with much success. If
I try sourcing test.R from the 'class' package, I get this error:
Error in .C("VR_knn1", as.integer(ntr), as.integer(nte), as.integer(p),
: C/Fortran function not in load table
I checked the class.so file, and sure enough VR_knn1 is there. Why can't
R find it?
By the way, I'm running RedHat Linux,
1998 Mar 30
2
R-beta: Not loading C library
I've been using R for the last few weeks, but not with much success. If
I try sourcing test.R from the 'class' package, I get this error:
Error in .C("VR_knn1", as.integer(ntr), as.integer(nte), as.integer(p),
: C/Fortran function not in load table
I checked the class.so file, and sure enough VR_knn1 is there. Why can't
R find it?
By the way, I'm running RedHat Linux,
2006 Mar 31
6
Split Validations?
I have a single table that two people enter data into. Person A creates
the record and I need to specify certain required fields in his form.
Person B has a separate form and she fills in additional fields and I
need to specify that some of these are required.
Since the data is all in one table and since the validations are in the
model, won''t Rails complain when person A tries to
2005 Dec 16
4
Validation with Aggregation
ActiveRecord supports composed_of for value objects which is
fantastic but one thing that it doesn''t seem to support (or at least
I am unable to find any documentation for) validation of the value
objects.
For example, given the following:
class Message < ActiveRecord::Base
composed_of :sender, :class_name => ''EmailAddress''
composed_of :recipient,
2006 Mar 29
10
newbie question
Hi, I am new to Rails, I followed the cookbook tutorial, it worked fine, but
when I started another tutorial called todo :
when I type : http://127.0.0.1:3000/todo/new
I get this error :
Routing Error
Recognition failed for "/todo/new"
please help me.
--
View this message in context: http://www.nabble.com/newbie-question-t1359958.html#a3643454
Sent from the RubyOnRails Users forum
1999 Sep 30
6
Graphics output device
Dear developers,
I wonder would you consider making a save to a graphics file format (as opposed
to ps)?
What prompts this is that we have just finished my wife's thesis using R
heavily for stats and graphs. The combination of latex, bibtex and R generated
.eps worked a treat and we were very pleased with both the final outcome and
the efficiency of gernerating it, especially when all the
2015 Feb 13
1
GPO set link contaniter
>I created a gpo with samba-tool, but I want to assign to a OU, the GPO that I created earlier,
>I guess I need to use the command, samba-tool gpo SetLink. How the command is used?
>I tried the following way:
> samba-tool gpo setLink OU=People,DC=dominio,DC=pdc,DC=cu cn_GPO
> But it did not work
> Throws the following exception Badly formed gpLink
2005 Nov 15
9
Multiple Login scripts
Hi all,
Just a quick question about login scripts for a large number of users who
change rooms a lot.
I have several rooms each with a printer, and nearly a thousand users divided
into two main groups - pupils and teachers who change rooms on a routine
basis. Is it possible to set up multiple login scripts that would be executed
in sequence i.e. run by user is %u, and machine is %m is it
1997 Sep 12
6
Folder Permissions
Hi All,
Can somebody help me set this up.
I'm trying to set up a public folder on my SAMBA server which will let
my users create their own folders to store their files.
And not let everyone delete them.
Following are the problems I'm having:
1) If I set the directory rights to 755 on /exports and share the
/exports/public directory with ~/public set to 755
Users can't create
2006 Feb 24
2
Problem Referencing Fixture Objects
In my tests, I use fixtures, eg pupils.yml might be:
jimmy:
id: 100003
known_as: Jimmy
surname: Page
academic_year_id: 1
gender: m
In the test, @jimmy (the referencing style referred to in Agile Web Dev....)
is nil, whereas pupil(:jimmy) returns the expected Pupil object.
What gives?
Robert
2013 Oct 02
1
Re: Bringing up a guest with network disabled
2013/10/2 Jorge Fábregas <jorge.fabregas@gmail.com>
> On 10/01/2013 09:29 AM, James Gibbon wrote:
> > Would be grateful if someone could suggest a way to disable the
> networking in the
> > cloned VM within the XML, if that's possible.
>
> I have no idea if it's possible to "disable" the NIC on the VM
> definition but you could boot into
2002 May 21
1
Linux to Windows Dfs
Howdy
Is there any reason why I cannot mount to a Dfs share on a Windows 2000 box
from Linux?
I have tried:
# mount -t smbfs //server/share$ /mnt/point -o username=user
Which works...
# mount -t smbfs //server/share$/home/pupils/user /mnt/point -o username=user
Trying to mount any share within the Dfs root retruns:
23479: tree connect failed: ERRDOS - ERRnosuchshare (You specified an
2007 May 11
1
Anova
Doea anyone know how to compute components of variance analysis? For example, I have the score of pupils on a test. Each pupil belongs to a school and within each school I may have several classes? How can I estimate the variance of the pupils, schools, classes and the errror variance?
Any examples?
Any help will be appreciated.
Jason
Dr. Iasonas Lamprianou
Department of Education
The
2016 Apr 19
4
Re: Create multiple domains from single saved domain state (is UUID/name fixed?)
(please don't top-post. Put your responses inline, in context)
On 04/19/2016 01:09 PM, Jonas Finnemann Jensen wrote:
> virt-builder looks like some fancy guest/host interaction related to
> building VM images.
>
> What I'm looking for is more like:
> virsh save running_domain saved-domain-A.img
> cp saved-domain-A.img saved-domain-B.img
> virsh save-image-edit
2008 Dec 12
8
cucumber features HTML output bug with more than 100 steps
I''m having the following problem:
With the format as html, the output of cucumber stops coloring successful
steps green after step #100. This last line in the HTML is:
<script type="text/javascript">stepPassed(100)</script>
Steps 101 -n are colored grey. The <body> tag is not closed but all steps
are displayed. When running with ''format
2006 Feb 16
21
RoR VS Rails ???
I didn''t get a chance to go to this meeting debating WebObjects Vs
Rails, but here''s a report about it:
http://desperatepundit.com/blog/cremes/technology/2006/02/15/WebObjects-versus-Ruby-On-Rails.html
I don''t get what he''s saying, hand coding the model? yeah, you COULD ...
but what about script/generate ???
And is that so what he said about security?
--
2007 Dec 04
7
REST bug with form_for
Hi all, I am running on Windows XP sp2 with ruby 1.8.6, and rails
1.2.3
I am using REST, and have this in my view
<% form_for(:project,
:url => project_path(:user_id => @project.my_user, :id =>
@project),
:html => {:method => :put}) do |f| %>
The browser correctly gives
<form method="post" action="/users/2/projects/1">