<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>RemVee.blog</title>
    <link>http://blog.remvee.net/</link>
    <description>RemVee.blog do { |item| item.mangle }</description>
    <item>
      <title>Plugins naar Github</title>
      <link>http://blog.remvee.net/2008/09/03/Plugins_naar_Github</link>
      <description>&lt;p&gt;In blinde opruimwoede heb ik m&amp;#8217;n huis plugins op &lt;a href=&quot;http://github.com/&quot;&gt;GitHub&lt;/a&gt; gezet.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/remvee/active_form/tree/master&quot;&gt;ActiveForm&lt;/a&gt;; zie ook &lt;a href=&quot;http://blog.remvee.net/category/active_form&quot;&gt;active_form&lt;/a&gt;&lt;br /&gt;
  &lt;code&gt;ruby script/plugin install git://github.com/remvee/active_form.git&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/remvee/dutchify/tree/master&quot;&gt;Dutchify&lt;/a&gt;; zie ook &lt;a href=&quot;http://blog.remvee.net/category/dutchify&quot;&gt;dutchify&lt;/a&gt;&lt;br /&gt;
  &lt;code&gt;ruby script/plugin install git://github.com/remvee/dutchify.git&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/remvee/labelify/tree/master&quot;&gt;Labelify&lt;/a&gt;; Yet Another Form Builder&lt;br /&gt;
  &lt;code&gt;ruby script/plugin install git://github.com/remvee/labelify.git&lt;/code&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://github.com/remvee/nullable_booleans/tree/master&quot;&gt;NullableBooleans&lt;/a&gt;; boolean attributen gemakkelijker op &lt;code&gt;nil&lt;/code&gt; zetten&lt;br /&gt;
  &lt;code&gt;ruby script/plugin install git://github.com/remvee/nullable_booleans.git&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;</description>
      <author>remco@remvee.net (Remco van 't Veer)</author>
      <pubDate>Wed, 03 Sep 2008 13:13:00 +0200</pubDate>
    </item>
    <item>
      <title>ActiveForm plugin</title>
      <link>http://blog.remvee.net/2007/09/24/ActiveForm_plugin</link>
      <description>&lt;p&gt;Last week at &lt;a href=&quot;http://www.railsconfeurope.com/&quot;&gt;RailsConf Europe&lt;/a&gt; I met some people who are using my &lt;a href=&quot;http://blog.remvee.net/2006/04/26/vluchtige_ActiveRecord_objecten&quot;&gt;ActiveForm&lt;/a&gt; code to make forms in their Rails sites.  It&amp;#8217;s about time to wrap it up as a plugin, so here it is.&lt;/p&gt;
&lt;p&gt;From the &lt;a href=&quot;http://svn.remvee.net/plugins/active_form/README&quot;&gt;&lt;span class=&quot;caps&quot;&gt;README&lt;/span&gt;&lt;/a&gt;:&lt;br /&gt;
&lt;blockquote&gt;&lt;/p&gt;
&lt;p&gt;This plugin provides a base class for making forms with ActiveRecord validations without having a corresponding database table.  You can use ActiveForm for:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;making forms which don&amp;#8217;t needed storage, like simple email forms&lt;/li&gt;
	&lt;li&gt;provide extra validations on existing ActiveRecord models&lt;/li&gt;
	&lt;li&gt;make forms for composite objects&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;p&gt;Installation:&lt;/p&gt;
&lt;pre&gt;script/plugin install http://svn.remvee.net/plugins/active_form&lt;/pre&gt;
&lt;p&gt;I know, there already is a plugin called &lt;a href=&quot;http://www.realityforge.org/svn/code/active-form/trunk/&quot;&gt;active_form&lt;/a&gt; but I don&amp;#8217;t like it.  It doesn&amp;#8217;t provide a &amp;#8220;real&amp;#8221; AR object causing all kinds of things to not work (like &lt;code&gt;ActiveRecordHelper#form&lt;/code&gt; and &lt;code&gt;DateHelper#datetime_select&lt;/code&gt; for instance), it doesn&amp;#8217;t include any tests and my version is a lot simpler (&lt;a href=&quot;http://ruby.sadi.st/&quot;&gt;flog&lt;/a&gt; score 20 versus 74).&lt;/p&gt;
&lt;p&gt;Why not change the name?  I like it!  If you can come up with something better, please leave a comment.&lt;/p&gt;</description>
      <author>remco@remvee.net (Remco van 't Veer)</author>
      <pubDate>Mon, 24 Sep 2007 12:49:00 +0200</pubDate>
    </item>
    <item>
      <title>vluchtige ActiveRecord objecten</title>
      <link>http://blog.remvee.net/2006/04/26/vluchtige_ActiveRecord_objecten</link>
      <description>&lt;p&gt;Ik ben een simpele web applicatie met rails aan het bouwen.  Niets bijzonders; wat berichtjes, een gastenboek en wat formulieren.  Deze laatste formulieren hoeven niet opgeslagen te worden maar moeten verstuurd worden via e-mail.  Dat versturen is geen probleem; recht toe recht aan &lt;code&gt;ActiveMailer&lt;/code&gt;.  De uitdaging zit hem in het valideren van deze formulieren.&lt;/p&gt;
&lt;p&gt;Uitdaging is misschien een beetje sterk uitgedrukt maar als je net het beheer van berichten met &lt;code&gt;ActiveRecord&lt;/code&gt; hebt gebouwd, is het een beetje jammer als je dan toch weer dingen gaat schrijven als:&lt;/p&gt;
&lt;pre&gt;if params[:email].nil? || !EMAIL_PATTERN.match(params[:email])
  @errors[:email] = 'E-mail adres moet correct ingevuld worden.'
end&lt;/pre&gt;
&lt;p&gt;Neeh, daar pas ik voor!  Ik wil gewoon &lt;code&gt;form.valid?&lt;/code&gt; kunnen vragen zoals bij &lt;code&gt;ActiveRecord&lt;/code&gt; objecten.  Maar hoe doe je dat?&lt;/p&gt;&lt;br /&gt;&lt;a href=&quot;http://blog.remvee.net/2006/04/26/vluchtige_ActiveRecord_objecten#more&quot; class=&quot;more&quot;&gt;Lees verder &amp;rsaquo;&amp;rsaquo;&lt;/a&gt;</description>
      <author>remco@remvee.net (Remco van 't Veer)</author>
      <pubDate>Wed, 26 Apr 2006 09:32:00 +0200</pubDate>
    </item>
  </channel>
</rss>
