🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #912

walidacja modelu w przypadku has_and_belongs_to_many

#912
From: RaW
Date: Sun, 27 Jan 2008 23:18
8 lines
1322 bytes
class Role < ActiveRecord::Base
  has_and_belongs_to_many :rights
end

W jaki sposób mogę wykonać 'validates_presence_of' dla 'role.rights'?

--
RaW
Technical Details
Message-ID: <d3eadb5f-68bc-448f-a7c4-4ef395c49552@i29g2000prf.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!feed.news.interia.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!news.glorb.com!postnews.google.com!i29g2000prf.googlegroups.com!not-for-mail
From: RaW <rafal@wrzochol.net>
Newsgroups: pl.comp.lang.ruby
Subject: walidacja modelu w przypadku has_and_belongs_to_many
Date: Sun, 27 Jan 2008 15:18:31 -0800 (PST)
Organization: http://groups.google.com
Lines: 8
Message-ID: <d3eadb5f-68bc-448f-a7c4-4ef395c49552@i29g2000prf.googlegroups.com>
NNTP-Posting-Host: 212.187.194.74
Mime-Version: 1.0
X-Trace: posting.google.com 1201475911 9730 127.0.0.1 (27 Jan 2008 23:18:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sun, 27 Jan 2008 23:18:31 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: i29g2000prf.googlegroups.com; posting-host=212.187.194.74;  posting-account=nOKuZgoAAACRvJ8_k0_zBxxiw1ibRu2K
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.11)  Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11,gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit