I figured a way to do validation. I found that inside models, i need to add these lines
validates_presence_of :name
validates_uniqueness_of :name
What i'm trying to achieve is for example, i don't want the user to add :;!@#$%^&*() [or special characters] in my text inputs. Need some inputs on this.
:formatas described in the docs