Displaying 5 results from an estimated 5 matches for "some_item".
Did you mean:
role_item
2008 Sep 30
12
dtrace missing ''unlinkat''? showing process stack?
everyone,
Just out of curiosity, I did a
dtrace -n ''syscall:::entry { @num[execname, probefunc] = count(); }''
and looked at the entries produced by ''rm''.
I see everything that rm did, *except* the unlinkat - which is unfortunate because I want to trace which processes have deleted which files.
So - does dtrace contain unlinkat as a probe for a system call?
2006 Jun 12
0
Maintain foreign key linkages in fixtures...
Is there anyway to refer to the entities being linked in a foreign key field of
a fixture by name instead of id?
Ie, if I have
categories.yml
some_cat:
id: 1
name: Foo
other_cat:
id: 2
name: Bar
data.yml
some_item:
id: 1
category_id: <%= categories(:some_cat).id %>
name: Hello World
The above doesn''t work due to scope, even if the fixtures are loaded in the
proper order. But I think it illustrates what I''d like to do. If the objects
in my fixtures have "good" names...
2006 Apr 28
0
ActiveRecord associations -- when to use force_reload = true
If an Order has_many Items, when do I have to call order.items(true)
instead of just order.items to get the current list of items ?
In Rails 1.1 if I call some_item.destroy, the order.items list doesn''t
get updated unless I call order.items(true) -- this does not happen in
Rails 1.0.
Also when I add items to an order the list may or may not get updated
depending on the Rails version and the way I''m adding items.
So I''m confused b...
2007 Sep 29
4
How to write the very first example?
Many posts on this list are about using RSpec with Rails and that''s the way
I''m also using RSpec all the time.
Unfortunately there isn''t that much info about using RSpec for standalone
Ruby projects.
I must admit I''m really having a hard time writing the very first example(s)
for a fresh standalone Ruby project. I haven''t really got a clue where to
2007 Oct 04
7
Using Predicates to look at an array..
Hi all,
I have an array of shipping_type''s being returned, and I want to see
what is in there. In the past I have done:
shipping_type.include?(Cart::SHIPPING_TYPE_REGULAR).should be_true
This works, but looks really ugly.. It just doesn''t roll of the
tongue very well. I then looked up the use of Predicates, which I
had been using, but hadn''t realized: