small medium large xlarge

Pt-C-2

Dave says:

I changed the validation of the price, adding the :message option


validates_numericality_of :price, :message => "should be a number like 12.34" 

youngMok says:

i want to change message like this.
“Hi, there” + “Price(* the name of :price attribute)” + “should be a number like 12.34”
how can i do this? help me ~

Page History
  • V27: Juan Carlos Pazmino [7 months ago]
  • V26: Juan Carlos Pazmino [7 months ago]
  • V24: Juan Carlos Pazmino [7 months ago]
  • V25: System [7 months ago]
  • V23: Juan Carlos Pazmino [7 months ago]
  • V22: Juan Carlos Pazmino [7 months ago]
  • V21: Ad Rienks [about 1 year ago]
  • V20: Ad Rienks [about 1 year ago]
  • V19: Ad Rienks [about 1 year ago]
  • V19: Ellie @ Support [over 4 years ago]