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

Depreciation Warnings

Open ramaboo opened this issue 15 years ago • 3 comments
trafficstars

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?

ramaboo avatar Sep 07 '10 12:09 ramaboo

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.

ryanb avatar Sep 23 '10 21:09 ryanb

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?

fedegl avatar Feb 24 '11 22:02 fedegl

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?

ryanb avatar Feb 25 '11 17:02 ryanb