nifty-generators
nifty-generators copied to clipboard
Depreciation Warnings
Looks like nifty scaffold generates some not so compatible rails 3 code :(
$ rails g nifty:scaffold user username:string email:string password:string --haml
DEPRECATION WARNING: f.error_messages was removed from Rails and is now available as a plugin. Please install it with rails plugin install git://github.com/rails/dynamic_form.git. (called from block in _app_views_users__form_html_haml___3646798309746030193_38225180__1996457461889590104 at /usr/local/apache2/htdocs/ucravewiki/wp/app/views/users/_form.html.haml:2)
also a generator that used formtastic for forms would be awesome! Do you know if anyone is working on one?
Try running rails g nifty:layout which generates error_messages_helper.rb which provides these methods in Rails 3. I'll add this to the documentation.
I have installed the error_messages_helper.rb, and in development everything is working fine, but in production I get the deprecation warning. Any Ideas why?
That's strange, I'm not sure. Are they using the same exact version of Rails in both development and production? And you're certain the production version has the error_messages_helper file?