How to make a field required in Rails?

前端 未结 2 1362
眼角桃花
眼角桃花 2020-12-10 01:38

What is the simplest way to make a field required in Rails?

inquiry.rb:

class Inquiry < ActiveRecord::Base
  attr_accessible :address, :email_id,          


        
2条回答
提交回复
热议问题