Displaying 1 result from an estimated 1 matches for "fk_subscriber".
2006 Jan 10
0
Paginate with two tables ?
...2) not null,
surname varchar(64) not null,
create_timestamp DATETIME not null,
modify_timestamp DATETIME not null,
primary key (id));
create table contracts (
id integer auto_increment,
subscriber_id integer,
service_id integer,
sign_date timestamp,
representative varchar(128) not null,
constraint fk_subscriber foreign key(subscriber_id) references
subscribers(id),
primary key(id));
There is something like this in controller:
@subscriber_pages, @subscribers = paginate :subscriber, :per_page => 10 ,
:order => ''create_timestamp DESC'', :include => :contract
But I''m g...