Displaying 1 result from an estimated 1 matches for "assistarticle".
Did you mean:
assistarticles
2006 Apr 12
0
How to get validates_presence_of worked in this situation?
Suppose:
class articles < ActiveRecord::Base
has_many :assistarticles
validates_presence_of :body
end
class assistarticles < ActiveRecord::Base
belongs_to :article
validates_presence_of :detail
end
In the submit form:
<%= text_field ''article'', ''body'' %>
<%= text_field ''assistarticle'', &...