ryanb / nifty-generators

A collection of useful Rails generator scripts.
MIT License
1.98k stars 283 forks source link

Rails 3.2 issue - layout generation #145

Open bashcoder opened 12 years ago

bashcoder commented 12 years ago

This command:

rails g nifty:layout --haml

generates this file:

public/stylesheets/sass/application.sass

However, in rails 3.2 this file is expected to be in this location:

app/assets/stylesheets/application.sass
metajunkie commented 12 years ago

I also note that just using $ rails g nifty:layout that the application.html.erb includes the following line: <%= javascript_include_tag :default %> I believe it should now be: <%= javascript_include_tag "application" %>

at least that is the change I had to make, in order to get the "delete" option, which used javascript calls, to work.

Ryan: Perhaps you are not using the nifty-generators any longer? (or at least not using the layout feature?) I imagine this issue crept in a while ago.

srt32 commented 11 years ago

This change worked for me too.

Apiaceae commented 10 years ago

Same issue with .erb template, nifty generator put application.css in /public folder, which should be in /assets folder, manually move the file, it works with the blue/white page.

kiidbrian commented 10 years ago

the .erb template change worked for me too