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

Nifty Layout, Rails 3.1, broken javascript

Open skrabadiloseidon opened this issue 13 years ago • 5 comments

"rails g nifty:layout" generates an application.html.erb with invalid javascript_include_tag. When manually changed to "<%= javascript_include_tag 'application' %>" instead of "<%= javascript_include_tag :defaults %>" it works for me.

skrabadiloseidon avatar Aug 10 '11 15:08 skrabadiloseidon

Yes I had this same issue a minute ago.

chabgood avatar Aug 30 '11 21:08 chabgood

+1.

andreimoment avatar Jan 21 '12 00:01 andreimoment

+2 i had the same issue and skrabadiloseidon's solution fixed it. gracias. this has been an issue for 9 months!!

wuliwong avatar Apr 27 '12 16:04 wuliwong

+3

ssteigen avatar Jun 06 '12 12:06 ssteigen

Yes, I just encountered this problem too in Rails 3.2. A commit (https://github.com/ryanb/nifty-generators/pull/157) has been provided but has not been included in the master yet.

Considering that I generated my app with the standard Rails generator and the :defaults symbol is not recognised from this, it would be better to change to follow the standard wouldn't it? How does one get the :defaults symbol working anyway?

reagleton avatar Dec 19 '12 03:12 reagleton