Alternate CSS for scaffold?

Does anyone have an alternate CSS for the default scaffold that makes
it look decent? Would you be willing to share it? Eventually I'll
create my own scaffold generator but in the mean time, I'd like to be
able to demo Rails to folks without the forms looking so 1994.

heh... now that I'm trying to do it myself I realize I was asking the
impossible. Let me change my question: Has anyone created an updated
scaffold generator (designed to be actually used as a generator, as
opposed to ActiveScaffold and its ilk) with more CSS-friendly output?

Hi Mark,

Mark Thomas wrote:

Has anyone created an updated scaffold generator
(designed to be actually used as a generator, as
opposed to ActiveScaffold and its ilk) with more
CSS-friendly output?

Have you seen Richard White's Ajax Scaffold Generator? It's at http://rubyforge.org/projects/ajaxscaffold/. There's a short review / tutorial at http://www.height1percent.com/articles/2006/02/21/on-the-new-ajax-scaffold-generator. I haven't used it yet but it looks very interesting.

hth,
Bill

Yes, AjaxScaffold is being replaced by ActiveScaffold. I've used it
and it's great as a drop-in admin console. But it's not meant to be
used as a generator--it's big and complicated, not easy to go in and
modify.

I was really looking for something in the spirit of this:
http://www.tonyspencer.com/2007/03/01/custom-scaffolding-for-rails/
except more CSS-friendly with a nice CSS stylesheet.

If you want to use the haml plugin, there are a couple of generators at:
http://groups.google.com/group/haml/files
one, ‘haml_dry_scaffold’ has CSS imported from Ed Moss’s DryScaffold.
-Larry

the templates used by the scaffold generator are located here:

rails-1.2.2/lib/rails_generator/generators/components/scaffold/templates

you could just modify the rhtml and css files. one layout, 6 (very
small) views and 1 css. you could probably whip something up in short
order.

don't forget to backup the originals :slight_smile:

Yes, this is my backup plan. I was hoping someone would have done this
already and made it available to others. I'm surprised nobody seems to
have done this.

- Mark.