Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

scaffold generator creates layout file that links to non-existent css file

#3756

I run:

./script/generate scaffold Book title:string

It creates a layout file that includes:

<%= stylesheet_link_tag 'scaffold' %>

Which generates the following in the logs:

ActionController::RoutingError (No route matches "/stylesheets/scaffold.css"):

The expected behaviour is that if it generates a layout file linking to a css file, the css file should be there.

Ruby version 1.8.7 (universal-darwin10.0)
RubyGems version 1.3.5
Rack version 1.1
Rails version 3.0.pre
Edge Rails revision 87bcf1aa15f8edb4287e1916b65a2c523f765e86

Reported by Luke Cowell · January 20th, 2010 @ 04:21 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Luke Cowell
    Luke Cowell

    Should be marked as resolved. Generator now creates scaffold.css file.

    February 8th, 2010 @ 04:23 PM

  2. Prem Sichanugrist (sikachu)
    Prem Sichanugrist (sikachu)
    • State changed from new to resolved

    February 8th, 2010 @ 07:07 PM