Rails3 dynamic_form plugin not recognized?

Using Ruby 1.9.2 and Rails 3 -

When I try to use, <%= error_messages_for 'story' %>I get this error:

DEPRECATION WARNING: error_messages_for 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 _app_views_stories_new_html_erb__1042605186_33967248__100840187 at C:/Ruby192/shovell/app/views/stories/new.html.erb:1) 

So, I did what I said and started installing the plugin. However, now I have an empty dynamic_form folder in vendor/plugins. I tried using httpinstead of gitno luck. I also added /at the end of the url that worked for someone on the web but no luck.

I added gem dynamic_formin Gemfileand require "dynamic_form"in application.rband then started again bundle install. It shows that dynamic_form-1.1.3 is set to `lib / ruby โ€‹โ€‹/gems/1.9.1/gems/ ', but I still get the same error.

+4
source share
2

, , rails/dynamic_form github vendor/plugins "dynamic_form". , , , , , .

+2

dynamic_form Rails Engine, .

gem 'dynamic_form' Gemfile, bundle install

require 'dynamic_form'

lib/libname.rb. , .

+4

All Articles