@product.errors.full_messages.join('\n')and I am getting something like below Name can't be blank \n Address can't be blank After doing search in google some how I got that I have to give \n in double quote like below
@product.errors.full_messages.join("\n")and it works..
No comments:
Post a Comment