2

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.

Kieran Andrews
  • 5,845
  • 2
  • 33
  • 57

1 Answers1

5

Just the top 5 links found searching Google for "rails error_messages_for rails 3".

That said, you really should use an up-to-date book. Even the latest free Rails tutorials are covering Rails 3.

Community
  • 1
  • 1
Lee Jarvis
  • 16,031
  • 4
  • 38
  • 40