2009-12-29 91 views

回答

1

明显的一个是样式表存在于你的目录中:

public/stylesheets/layout.css 

另外,如果你scaffold'd您的模型/视图等,确保你没有与控制器名称的另一个布局文件中:

app/views/layouts/xxxscaffoldname.html.erb 

如果要显示application.html.erb(或任何你称之为)布局的话,会导致你的css布局呈现出现问题。