how do you add an error (called "there was an error") in the validate method?

Question:how do you add an error (called "there was an error") in the validate method?

1.redirect_to " ... "

2. errors.add_to_base("there was an error")

3.the word "private"

4.their names begin with an underscore


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!