nifty-generators icon indicating copy to clipboard operation
nifty-generators copied to clipboard

Rails 3.2 issue - layout generation

Open bashcoder opened this issue 13 years ago • 4 comments

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

bashcoder avatar Feb 01 '12 13:02 bashcoder

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.

metajunkie avatar Feb 19 '12 11:02 metajunkie

This change worked for me too.

srt32 avatar Mar 03 '13 01:03 srt32

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.

Apiaceae avatar Nov 21 '13 19:11 Apiaceae

the .erb template change worked for me too

kiidbrian avatar Jun 06 '14 12:06 kiidbrian