# Alternate CSS for scaffold?

**URL:** <https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631>\
**Category:** Rails\
**Created:** [March 21, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631 "2007-03-21T18:06:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 21, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/1 "2007-03-21T18:06:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 22, 2007, 2:33pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/2 "2007-03-22T14:33:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 22, 2007, 2:45pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/3 "2007-03-22T14:45:32Z")

</div>

Hi Mark,

Mark T. 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 W.'s Ajax Scaffold Generator? It’s at  
[http://rubyforge.org/projects/ajaxscaffold/](http://rubyforge.org/projects/ajaxscaffold/). There’s a short review /  
tutorial at  
[The rise of no-code platforms | AppMaster](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

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 22, 2007, 3:36pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/4 "2007-03-22T15:36:47Z")

</div>

On Mar 22, 9:44 am, “Bill W.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi Mark,
> 
> Mark T. 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 W.'s Ajax Scaffold Generator?

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/](http://www.tonyspencer.com/2007/03/01/custom-scaffolding-for-rails/)  
except more CSS-friendly with a nice CSS stylesheet.

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 22, 2007, 7:15pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/5 "2007-03-22T19:15:43Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 22, 2007, 6:46pm UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/6 "2007-03-22T18:46:35Z")

</div>

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

On 3/22/07, Mark T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > opposed to ActiveScaffold and its ilk) with more  
> > > [Custom Scaffold for Rails](http://www.tonyspencer.com/2007/03/01/custom-scaffolding-for-rails/)  
> > > except more CSS-friendly with a nice CSS stylesheet.
> 
> >

–  
Best Regards,  
-Larry  
“Work, work, work…there is no satisfactory alternative.”  
— E.Taft Benson

---

<div class="post-metadata">

**Author:** ![markthomas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/90db22/32.png) [@markthomas](https://www.ruby-forum.com/u/markthomas)\
**Post date:** [March 26, 2007, 2:07am UTC](https://www.ruby-forum.com/t/alternate-css-for-scaffold/89631/7 "2007-03-26T02:07:32Z")

</div>

On Mar 22, 2:14 pm, “Chris H.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 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.

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.
