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
  • V19: Ellie @ Support [over 2 years ago]
  • V25: Mark Young [over 3 years ago]
  • V24: William Ko [over 3 years ago]
  • V23: William Ko [over 3 years ago]
  • V22: Mark Young [over 3 years ago]
  • V13: Christian [over 4 years ago]
  • V12: Christian [over 4 years ago]
  • V11: Lee Choon Siong [about 5 years ago]
  • V10: Nick Morgan [over 5 years ago]
  • V9: Nick Morgan [over 5 years ago]