Displaying 1 result from an estimated 1 matches for "sign_dat".
Did you mean:
sign_date
2006 Jan 10
0
Paginate with two tables ?
...table subscribers (
id integer not null auto_increment,
name varchar(32) 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 => ''cr...