Displaying 2 results from an estimated 2 matches for "y1zfqonckls28".
2007 Feb 27
2
Creating a PDF on the fly
A friend and I are just in the process of trying to create PDFs on the
fly. This isn''t in itself too hard, but we have some repeating images
that are being put in over and over again. It''s increasing file size
too much unfortunately.
Does anyone know the best way to ensure file size is kept to a minimum
for this scenario? We know about linking to a URI, but the problem with
2007 Feb 24
0
after_create not creating the right object
I have 2 tables... club and forum, which use the "type" as I''m
subclassing the Club and Forum objects. Tables are:
clubs:
id
title
type
forums:
id
club_id
title
type
I''ve put an "after_create" callback in the Club as Club has_one Forum:
class Club < ActiveRecord::Base
after_create :create_forum
has_one :forum
def self.create_forum
# create it