Why doesn't Rails' “errors.full_messages” replace attribute and message variables?

后端 未结 8 1681
小鲜肉
小鲜肉 2020-12-09 16:22

Having a strange problem with a rails model I just created.

Here are my validations:

validates_presence_of :from_name, :message => \'Please provid         


        
8条回答
  •  死守一世寂寞
    2020-12-09 16:59

    Upgrading to Version rails 2.3.9 fixes this problem

    gem install -v 2.3.9 rails --include-dependencies
    

    EDIT:

    You also need to edit the config\environment.rb file to change the RAILS_GEM_VERSION.

    RAILS_GEM_VERSION = '2.3.9'
    

    EDIT #2:

    I should note that version 2.3.9 is not the latest version of the 2.3.X branch, and you should upgrade the the latest version available.

提交回复
热议问题