<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>%w(Akita On Rails) * 2.0 - ActiveResource incomplete Comments</title>
  <id>tag:www.sproutcorewithrails.org,2008:/2008/3/25/activeresource-incomplete/comments</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://www.sproutcorewithrails.org/2008/3/25/activeresource-incomplete/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2008/3/25/activeresource-incomplete" rel="alternate" type="text/html"/>
  <updated>2008-04-10T02:09:30Z</updated>
  <entry xml:base="http://www.sproutcorewithrails.org/">
    <author>
      <name>AkitaOnRails</name>
    </author>
    <id>tag:www.sproutcorewithrails.org,2008-03-25:2460:2564</id>
    <published>2008-04-10T02:09:30Z</published>
    <updated>2008-04-10T02:09:30Z</updated>
    <category term="Dicas e Tutoriais"/>
    <category term="English"/>
    <category term="Rails 2.0"/>
    <category term="surgeworks"/>
    <link href="http://www.sproutcorewithrails.org/2008/3/25/activeresource-incomplete" rel="alternate" type="text/html"/>
    <title>Comment on 'ActiveResource incomplete' by AkitaOnRails</title>
<content type="html">&lt;p&gt;Seems like development of validations on ActiveResource is back on track by &lt;span class=&quot;caps&quot;&gt;DHH&lt;/span&gt; himself as we can see &lt;a href=&quot;http://dev.rubyonrails.org/changeset/9171&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;http://dev.rubyonrails.org/changeset/9173&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.sproutcorewithrails.org/">
    <author>
      <name>Yura</name>
    </author>
    <id>tag:www.sproutcorewithrails.org,2008-03-25:2460:2558</id>
    <published>2008-04-08T18:18:09Z</published>
    <updated>2008-04-08T18:18:09Z</updated>
    <category term="Dicas e Tutoriais"/>
    <category term="English"/>
    <category term="Rails 2.0"/>
    <category term="surgeworks"/>
    <link href="http://www.sproutcorewithrails.org/2008/3/25/activeresource-incomplete" rel="alternate" type="text/html"/>
    <title>Comment on 'ActiveResource incomplete' by Yura</title>
<content type="html">&lt;p&gt;You should not override validate_* methods, but call them:&lt;/p&gt;


	&lt;p&gt;validate_on_create :must_have_unique_street_1_and_post_code  def must_have_unique_street_1_and_post_code
    if Address.find_by_street_1_and_post_code(street_1, post_code)
      errors.add_to_base(&#8216;Street address and post code already exist in the database&#8217;)
    end&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.sproutcorewithrails.org/">
    <author>
      <name>Damon Stephenson</name>
    </author>
    <id>tag:www.sproutcorewithrails.org,2008-03-25:2460:2476</id>
    <published>2008-03-28T03:36:57Z</published>
    <updated>2008-03-28T03:36:57Z</updated>
    <category term="Dicas e Tutoriais"/>
    <category term="English"/>
    <category term="Rails 2.0"/>
    <category term="surgeworks"/>
    <link href="http://www.sproutcorewithrails.org/2008/3/25/activeresource-incomplete" rel="alternate" type="text/html"/>
    <title>Comment on 'ActiveResource incomplete' by Damon Stephenson</title>
<content type="html">&lt;p&gt;I could only think that things get overlooked when debugging large APIs. Although, you would think &lt;span class=&quot;caps&quot;&gt;SOMEONE&lt;/span&gt; would notice this and patch it quickly…&lt;/p&gt;</content>  </entry>
</feed>
