nifty-generators
nifty-generators copied to clipboard
Nifty Layout, Rails 3.1, broken javascript
"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.
Yes I had this same issue a minute ago.
+1.
+2 i had the same issue and skrabadiloseidon's solution fixed it. gracias. this has been an issue for 9 months!!
+3
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?