I am new to ROR. I am trying to validate the text field and want to display the error messages if they are blank.
These text fields are not related to database. Hence I can not use the following
<%= error_messages_for "user" %>

Any help would be greatly appreciated.