Validate all fields on Rails model
validates_presence_of(self.column_names - ["id", "created_at", "updated_at"])
Written by Shane McDonald
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Related Tags
#rails
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#