Rails 3 beta3 app generator does not generate default stylesheet

I have just been following the updated 15 min blog tutorial by Yehuda

I noticed by browser outputs looked a bit weird. Then I discovered I had no stylesheet generated. Is this a known bug or what? Does someone have a link to the default stylesheet which should be generated?

Thanks!

It turns out that Yehuda seems to have 'cheated' a little with the screencast. The app needs the scaffold.css.

http://github.com/rails/rails/blob/master/railties/lib/rails/generators/rails/stylesheets/templates/scaffold.css

Is there a way to generate this stylesheet without scaffolding?

Also using

<%= form.error_messages %>

to display error messages, only results in this output:

<div class="fieldWithErrors"><input id="post_title" name="post[title]" size="30" type="text" value="" /></div>

Where is the bullet list of errors? Strange!

OK, the tutorial must have been for beta2. Now error_messages is a plugin!

rails plugin install git://github.com/rails/dynamic_form.git

"Kristian Mandrup" <kmandrup@gmail.com> wrote in message news:1d472af2-9a09-4f24-a8e1-2b6626294495@w17g2000yqj.googlegroups.com...

It turns out that Yehuda seems to have 'cheated' a little with the screencast. The app needs the scaffold.css.

Is there a way to generate this stylesheet without scaffolding?

In Rails 3 beta 1 one could add the stylesheet via "rails generate stylesheet", I doubt that has changed for beta 2 or 3, but I have not actually checked.

$ rails g stylesheet Could not find generator stylesheet.

I guess not... but

http://github.com/rails/rails/tree/master/railties/lib/rails/generators/rails/stylesheets

contains a stylesheets generator

$ rails g Please choose a generator below.

Rails:   controller   generator   helper   integration_test   mailer   metal   migration   model   observer   performance_test   plugin   resource   scaffold   scaffold_controller   session_migration   stylesheets

$ rails g stylesheets       create public/stylesheets/scaffold.css

Nice!

"Kristian Mandrup" <kmandrup@gmail.com> wrote in message news:42ccda8e-486c-4185-964a-d6b9c7fa1eb1@u31g2000yqb.googlegroups.com...

$ rails g stylesheet Could not find generator stylesheet.

I guess not... but http://github.com/rails/\[\.\.\.\]

contains a stylesheets generator

Yeah. I have trouble remember that is a plural generator name, since most (i.e. all other) generator names are signular, and this installs only one stylesheet, so "generate stylesheets" seems wrong anyway. Go figure!

Yeah! Let’s fix that :slight_smile:

I intended to actually mention that I used a stylesheet, but then totally forgot. Fail!

Yehuda Katz Developer | Engine Yard (ph) 718.877.1325