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

后端 未结 8 1676
小鲜肉
小鲜肉 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:53

    Go to dir_of_ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.x/lib/active_record/locale and edit the en.yml... replace the {{variable}} to %{variable}

    Worked for me...

    PS: maybe the path would be different for you. Adapt for you convenience.

提交回复
热议问题