I have a model class SDResolution.It has fields code and solution.I
have to make the solution not empty .So for that I wrote
validates_presence_of :resolution in the model.So from the view when
I click save nothing is saved to database.This is what I need.But no
error messages are printed and the view goes to next window…How can I
print error messages in the current window?
Thanks in advance