Displaying 10 results from an estimated 10 matches for "link_id".
Did you mean:
sink_id
2006 May 13
1
Rake clone bug?
...fault |
Extra |
+-----------------------+------------------------+------+-----+---------+----------------+
| pupil_set_id | mediumint(10) unsigned | | MUL | 0 |
|
| pupil_id | mediumint(10) unsigned | | MUL | 0 |
|
| link_id | bigint(20) unsigned | | PRI | NULL |
auto_increment |
| external_pupil_id | int(11) | YES | | NULL |
|
| external_pupil_set_id | int(11) | YES | | NULL |
| |
| setlink_end_date...
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 <===== first link_id
0 1 2 3 4 5 6 7...
2006 May 13
4
undesireable lazy loading
...user_vote
end
class UserVote < ActiveRecord::Base
belongs_to :user
belongs_to :link
end
I have a SQL query that is responsible for pulling out all links along
with votes from a database:
links = Link.find_by_sql(
["SELECT * FROM links LEFT JOIN user_votes ON links.id =
user_votes.link_id" +
" AND user_votes.user_id = ?", session[:user_id]]
)
If a user hadn''t voted for a given link yet, an empty record is returned
(NULL). The problem is that when trying to call that unexisting
associated object (link.user_vote) Rails attempts to retrieve it from
the d...
2005 Mar 28
0
Handling return from modal pages on rails
...t 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 location when a link or
form is activated, rather than before.
*link_modal* is a version of link_to that adds "?ret=<URL>.L<LINK_ID>"
to the link. It takes an extra "link_id" argument that sets the ID
attribute of the A element to L<LINK_ID>". I usually derive this ID
programaticaly, from the ID of the record that this link pertains to.
Set it to "nil" if you don''t use it. It&...
2006 Jun 04
2
activerecord table help please
...ve 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 add a link_id field. I''d like to use just one table so that
I can easily pull all posts and links associated with a given tag. If I
make a has_and_belongs_to_many relationship between tags and links I
seem to need a links_tags table. How do I make the links/tags
relationship appear in the same ta...
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 on if the item is a link
or a tag)
lort_id int ("link or tag id" == "lort" this holds the id of the
item involved...
2005 Aug 06
1
Cisco 7206 and Sample configs (Newbie)
...ike to. We have a call center that is
currently dormant but are considering opening it back up (approx 200 seats).
Also looking for ways to cluster or make it highly available. I looked
around, not a whole lot of info on this.
Thanks in advance.
http://www.designatedsystems.com/dynlink.jsp?link_id=63
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/.
2005 Dec 31
0
Polymorphic many to many linking
...reate 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
);
-- The linking table
create table linkings (
source_id int,
source_type varchar,
link_id int,
link_type varchar,
created_at timestamp,
comments varchar
)
I want to use has_many / belongs_to or some other association to be
able to have any number of objects from different types linked to each
object. I don''t want to create multiple linkings tables for that, as
the more o...
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