Displaying 10 results from an estimated 10 matches similar to: "Rake clone bug?"
2008 Feb 26
11
Is there way to trace memory in the dtrace ?
N_conreq:entry {
self->x=1;
calledaddr=(struct xaddrf *)arg3;
callingaddr=(struct xaddrf *)arg4;
trace(calledaddr->link_id);
tracemem(calledaddr->DTE_MAC.lsap_add, 80);
trace(callingaddr->link_id);
tracemem(callingaddr->DTE_MAC.lsap_add, 80);
}
0 -> N_conreq 255
2006 May 13
4
undesireable lazy loading
Hi,
My work with Rails has been fairly straightforward, until yesterday...
I''ve encountered rather a peculiar problem that I''m not able to solve
myself as a rails-newbie.
The model code looks like this:
class Link < ActiveRecord::Base
has_one :user_vote
end
class UserVote < ActiveRecord::Base
belongs_to :user
belongs_to :link
end
I have a SQL query that is
2006 Jun 04
2
activerecord table help please
Hi everyone. I''m trying to figure out how to implement site-wide
tagging for my website. I have a rails-based weblog that supports
tagging posts. There''s a has_and_belongs_to_many relationship between
posts and tags. I''d like to now reuse those tags for tagging links as
well. Where I have a posts_tags table with post_id and tag_id fields,
I''d like to
2006 Mar 07
7
m:n or multiple 1:n?
I have a Newbee question:
i have three tables and want to connect them. so is it stupid to make a
triple m:n (rails style xs_ys_zs) or do i have to make a new table
(newtable) where i got multiple 1:n?
the habtm (has and belongs to many) do only work proper to join two
tables, or i am wrong?
-jens
--
Posted via http://www.ruby-forum.com/.
2006 Jul 08
1
conditional table association?
I''m using a db to log two types of events, link events and tag
events. At first I had two tables, link_events & tag_events, but this
seemed not very DRY because the only column that was different
between them was link_id and tag_id respectively. So I made these
tables:
events:
id int
user_id int
objtype_id int (holds ''1'' or ''2'' depending
2005 Aug 06
1
Cisco 7206 and Sample configs (Newbie)
Newbie to Asterisk
I've been looking around for a little while, can't seem to find some sample
configs for using a Cisco 7206 as a gateway. The below link is an initial
plan of an Asterisk solution that may replace our Cisco Call Manager 3.1/
IPCC / IVR setup. We currently have all of the hardware below. Just take a
peak and see if there is anything that is off base. I don't know
2005 Mar 28
0
Handling return from modal pages on rails
Hi List,
I didn''t like the way store_location worked in rails. It doesn''t know
you''ve pushed the "back" button, and it always returns to the top of a
page. On a large page, the part you were looking at would no longer be
on the screen.
People try to deal with this using an AJAX hack, but it seems to me that
the proper way to fix it is to store the return
2005 Dec 31
0
Polymorphic many to many linking
Hi,
I''m trying to create a model where a few objects can all be linked to
each other through a central linking table. Table structure is like
this:
-- model class Computer
create table computers (
id serial,
description varchar
);
-- model Class user
create table users (
id serial,
name varchar
);
-- model class Desk
create table desks (
id serial,
location varchar
);
--
2006 Jul 08
9
How to handle dynamically columned tables in rails
I want to build an application that lets me (the end user accessing a
web page) design a simple list with columns and add records. E.g., if
the end user says I want a table that has a list of songs, he can create
a list (title, date, artist, label) and then make another list of, e.g.,
books on his bookshelf with the necessary columns (title, author,
pub_date, shelf).
The end user
2006 Jul 03
13
Eager loading ActiveRecord objects
I have a complex graph of ActiveRecord entities that I want to load with
one big honkin'' join query to avoid ripple loading. It''s for a report.
However :include doesn''t get me all the way there because I want to load
parents of parents (or children of children). I don''t mind doing the
SQL by hand but I''m not quite sure what to do to get the result