I am reading an old book (2008) to learn ruby and it is for rails 2.0.2.
I have decided to use Rails 3 to find out the differences between the ruby back then to what it is now. Most of it has been good so far and I have been easily been able to find and correct the differences.
The problem I am having now, is that the code is using a deprecated function error_messages_for
and upon looking at http://apidock.com/rails/ActionView/Helpers/ActiveRecordHelper/error_messages_for I cannot find a replacement or any way to show me what the new way is. Can someone help me find the new way to use error_messages_for
and how I should go about finding the new way to do things and the way to discover the new best practices etc.