Pål,
If the structure of the generated code is good and you have the
necessary hooks, you can often get away with changing the look and
feel with CSS alone. However the rails scaffold generator has some
shortcomings in what it generates (IMHO). So when we were creating a
generator for the MasterView project, we started from that but then
ended up changing most of it out to use divs and to apply the proper
CSS classes to give you the hooks you need. We did use a table for the
list partial, because to me it seems really hard to try and do tabular
data with divs. Yes it can be done, but it is somewhat painful and
seems to be more rigid (having to define column sizes and not allowing
the structure to resize with the data like tables do. But I agree with
everyone otherwise in that divs are much better for CSS layout in
general except for when you actually need a table (then use a table
The answer to your question about whether you can modify the scaffold
templates is: absolutely. This is Ruby You can modify the
templates, however I would suggest just copying the scaffold generator
or any other generator that is closest to what you want and then
modify it, creating a new generator.
There is a wealth of information on this page about generators and doing just that. http://wiki.rubyonrails.org/rails/pages/UnderstandingGenerators
Blessings,
Jeff Barczewski MasterView project founder http://masterview.org/