Displaying 20 results from an estimated 30000 matches similar to: "Configuration for libraries/plugins"
2005 Jul 26
3
Generating unique random tokens for ActiveRecord objects
I have an ActiveRecord subclass that needs to generate a random (hard
to guess) token for each record in its corresponding table. Currently
I''m doing something like this:
def before_create
self[''token''] = random_value
while self.class.find_by_token(self[''token''])
self[''token''] = random_value
2006 Jan 12
2
Engines issue: rake test_plugins failing when it shouldn''t
I create a simple engine with a simple controller:
class FredController < ApplicationController
def hello
render :text => ''Hello, world!''
end
end
and I create a simple functional test within the engine:
class FredControllerTest < Test::Unit::TestCase
...
def test_hello
get :hello
assert_response :success
end
2006 Jan 31
4
Rails bug? Conditions on associations ignored by eager loading
I''m looking for someone to confirm the following as a bug in Rails
1.0 before I post it to Trac.
If I use eager loading on an association that has conditions defined,
the conditions are ignored.
The following example illustrates the problem. I have two tables:
create_table "blogs", :force => true do |t|
t.column "name", :string
end
create_table
2006 May 21
3
Using ParseDate in for loop
Hi,
I''m trying to use ParseDate within a for loop but I get this error:
can''t dup NilClass
Any suggestions for making this work?
Thanks,
-Jason
2012 Feb 14
2
[PATCH 3/3] syslinux: support isolinux configuration files
This one is the most critical for my app, but also possibly the most
controversial to integrate.
A few applications that convert isolinux ISOs to bootable USB, including
mine, copy the ISO content to a VFAT formatted partition and then add
syslinux to make it bootable.
This would work great... if isolinux and syslinux shared the same
defaults when it comes to configuration files.
2006 Feb 14
7
9cays - A Rails app for Group Email
Even though it''s a little OT, I thought I''d announce the free public
beta of a new Rails app that I''ve been working on for a while:
http://9cays.com
Think of it as mini-mailing list software. For a lot of smallish
conversations, normal mailing list are too heavyweight (requiring
setup, moderation, admin, etc.), but group email is a pain because
messages
2016 Jan 15
2
Is MCRelocationInfo::createExprForRelocation used out of tree?
Deleting LGTM. It is a leftover of MCAnalysis.
Cheers,
Rafael
On 14 January 2016 at 16:54, Pete Cooper <peter_cooper at apple.com> wrote:
> Hi Jim, Rafael
>
> As respective code owner and frequent committer to MC, any thoughts on this?
>
> Cheers,
> Pete
>> On Jan 12, 2016, at 1:07 PM, Pete Cooper <peter_cooper at apple.com> wrote:
>>
>> Hi all
2007 May 17
8
Model: self is not child's parent
Assume a model Parent and another model Child. Child belongs_to Parent
and Parent has_many Children. The following fails:
@
p = Parent.find(:first)
assert p.equal?(p.children[0].parent)
@
It seems odd to me that I and my child''s parent are not the same object.
In fact, this is royally screwing me up. Can anyone tell me why this is
or point me at a relevant discussion, blog posting,
2006 Jan 16
6
the competition?
The ''gmail'' video seems really interesting:
http://www.morfik.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060116/385e77f0/attachment.html
2006 Feb 12
3
Error when Eager Loading "Not unique table/alias"
Hi list,
I get the error "Not unique table/alias" (myql 4.1) when trying eager
load 2 classes that use the same base class (not STI)
Example:
<code>
class Wedding < ActiveRecord::Base
belongs_to :bride, :class_name => ''Person'', :foreign_key => ''bride_id''
belongs_to :groom, :class_name => ''Person'',
2016 Jan 12
2
Is MCRelocationInfo::createExprForRelocation used out of tree?
Hi all
The virtual method MCRelocationInfo::createExprForRelocation doesn’t appear to have any callers. Is anyone using it out of tree?
In tree, its overridden in X86ELFRelocationInfo.cpp and X86MachORelocationInfo.cpp, but those overrides have 0% coverage (http://llvm.org/reports/coverage/lib/Target/X86/MCTargetDesc/X86MachORelocationInfo.cpp.gcov.html)
I’d like to delete these methods and
1999 Oct 05
1
WANTED: Q&A
First, I am really liking what I have seen so far in R. The demos are
quite fascinating, and I look forward to doing some really neat stuff
over the next little while with R.
Being but an intiate to R, I am having quite a bit of trouble figuring
out how to use the leaps library. Rather than ask several questions to
the list at large, I would rather explain what I'm trying to do to
someone in
2006 May 03
2
Perplexing nested transaction issue
I''ve been struggling with a strange nested transaction problem for a while.
I have a two objects with the following relationships:
Mail has_many :recipients
Recipients belong_to :mail
I''d like to update the status of the Mail object while sending mails for
each of it''s recipients. Following is a simplified example that I''m having
problems with:
def
2005 Nov 15
2
FormOptionsHelper select call failing
In Rails 0.14.3, I''m doing the following in a view:
<%= select ''folder'', ''format'', [''a'', ''b'', ''c''] %>
This line in is failing with:
ActionView::TemplateError (too few arguments.)
Am I calling select incorrectly? (Yes, the @folder object does exist,
and does have an attribute
2006 Feb 11
4
Helpful resources for averyone
Hi all - just a quick one - Ive been reading through a lot of these
posts and notice a lot of people looking for resouces ie Tutorials etc,
well I have recently signed up for the new Rubyforums.co.uk which
promises to be a great source of info for us all, they already have some
neat stuff on there which I have used myself and am very happy with so i
just thought it the good thing to do by
2023 Apr 28
1
gluster 10.3: task glfs_fusenoti blocked for more than 120 seconds
Good morning,
we've recently had some strange message in /var/log/syslog.
System:
debian bullseye, kernel 5.10.0-21-amd64 and 5.10.0-22-amd64
gluster 10.3
The message look like:
Apr 27 13:30:18 piggy kernel: [24287.715229] INFO: task
glfs_fusenoti:2787 blocked for more than 120 seconds.
Apr 27 13:30:18 piggy kernel: [24287.715327] Not tainted
5.10.0-22-amd64 #1 Debian 5.10.178-3
Apr
2006 Feb 11
2
Good tutorials & more
Hi all - just a quick one - Ive been reading through a lot of these
posts and notice a lot of people looking for resouces ie Tutorials etc,
well I have recently signed up for the new Rubyforums.co.uk which
promises to be a great source of info for us all, they already have some
neat stuff on there which I have used myself and am very happy with so i
just thought it the good thing to do by
2023 May 02
1
[Gluster-devel] gluster 10.3: task glfs_fusenoti blocked for more than 120 seconds
I don't think the issue is on gluster side, it seems the issue is on kernel
side (possible deadlock in fuse_reverse_inval_entry)
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bda9a71980e083699a0360963c0135657b73f47a
On Tue, May 2, 2023 at 5:48?PM Hu Bert <revirii at googlemail.com> wrote:
> Good morning,
>
> we've recently had some strange
2000 Jan 04
1
correlation matricies: getting p-values?
I have to admit that I'm at a bit of a loss here; any pointers would be
greatly appreciated.
I've been making correlation matricies from some of my datasets, and
have been instructed to get the probability values for each of these
correlations.
I've checked the online help for info on both the cor and cov functions,
but I was unable to find any relevant info on finding how to obtain
2006 Jul 09
8
Can the has_many create() method return an ID?
Hi all,
I have a has_many relationship, Cookbook :has_many Recipes
If I want to create a new recipe in my cookbook I do:
cookbook.recipes.create(data)
It would be nice if I could then easily get the id of the new recipe,
but the create() method doesn''t seem to return anything. Any ideas how?
Thanks in advance!
Cameron
--
Posted via http://www.ruby-forum.com/.