<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://tech.solin.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://tech.solin.eu/feed.php">
        <title>Solin Expertise Center</title>
        <description></description>
        <link>http://tech.solin.eu/</link>
        <image rdf:resource="http://tech.solin.eu/lib/images/favicon.ico" />
       <dc:date>2010-07-13T18:47:54+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=ror:error_handling_and_validation&amp;rev=1278946988&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=linux:apache_webserver&amp;rev=1270796537&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=ror:caching_nested_forms&amp;rev=1258406000&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=webdev:submitting_multiple_forms_at_once&amp;rev=1258402377&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=ror:caching&amp;rev=1258148134&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=ror:caching_and_localization&amp;rev=1258148021&amp;do=diff"/>
                <rdf:li rdf:resource="http://tech.solin.eu/doku.php?id=ror:how_to_enable_caching&amp;rev=1258147889&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://tech.solin.eu/lib/images/favicon.ico">
        <title>Solin Expertise Center</title>
        <link>http://tech.solin.eu/</link>
        <url>http://tech.solin.eu/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://tech.solin.eu/doku.php?id=ror:error_handling_and_validation&amp;rev=1278946988&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-07-12T17:03:08+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>ror:error_handling_and_validation</title>
        <link>http://tech.solin.eu/doku.php?id=ror:error_handling_and_validation&amp;rev=1278946988&amp;do=diff</link>
        <description>Standard Methods

First of all, take a look at Class
ActiveRecord::Errors. Here are pretty decent error methods to start with.

Dirty Details

The error_messages_for method outputs neatly formatted error messages for a given object. The catch is that you need to specify the name of the instance variable here, not the object name itself. Take the following example.</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=linux:apache_webserver&amp;rev=1270796537&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-04-09T09:02:17+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>linux:apache_webserver</title>
        <link>http://tech.solin.eu/doku.php?id=linux:apache_webserver&amp;rev=1270796537&amp;do=diff</link>
        <description>Apache - Part 1

Installing the Apache webserver is pretty straightforward. Do not use Apache 2.x, but instead rely on Apache 1.3.x. See the php.org website why. (The Apache 2 architecture is just not safe enough for php in  production environments).</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=ror:caching_nested_forms&amp;rev=1258406000&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-16T22:13:20+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>ror:caching_nested_forms</title>
        <link>http://tech.solin.eu/doku.php?id=ror:caching_nested_forms&amp;rev=1258406000&amp;do=diff</link>
        <description>Normally, using a nested resource's url leads you to the controller of the “embedded” resource. E.g:


  map.resources :guests, :has_many =&gt; :registrations



Produces:


    guest_registrations GET    /guests/:guest_id/registrations(.:format)           {:controller=&gt;&quot;registrations&quot;, :action=&gt;&quot;index&quot;}
                        POST   /guests/:guest_id/registrations(.:format)           {:controller=&gt;&quot;registrations&quot;, :action=&gt;&quot;create&quot;}
 new_guest_registration GET    /guests/:guest_id/registrations/n…</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=webdev:submitting_multiple_forms_at_once&amp;rev=1258402377&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-16T21:12:57+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>webdev:submitting_multiple_forms_at_once</title>
        <link>http://tech.solin.eu/doku.php?id=webdev:submitting_multiple_forms_at_once&amp;rev=1258402377&amp;do=diff</link>
        <description>Sure, you should avoid building multiple forms on one page. And no, technically speaking it is not possible to submit more than one form at a time. So, we're gonna cheat. But before we dive into the specifics, first some assumptions:


	*  You've got two or more forms and at least one interface element, let's say a button, to submit all forms.
	*  You are not afraid to use a javascript library. Actually, a specific library: Prototype.
	*  Your forms have unique form elements. Whenever a form ele…</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=ror:caching&amp;rev=1258148134&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-13T22:35:34+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>ror:caching</title>
        <link>http://tech.solin.eu/doku.php?id=ror:caching&amp;rev=1258148134&amp;do=diff</link>
        <description>*  How To Prevent Asset Caching - How to renew the cached asset id (e.g. after rotating an image)
	*  How To Enable Caching - A primer on action caching
	*  Caching and Localization - Here, we dive into various aspects of caching localized pages
	*  Caching Nested Forms - You can configure nested routes to enable caching for nested forms</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=ror:caching_and_localization&amp;rev=1258148021&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-13T22:33:41+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>ror:caching_and_localization - created</title>
        <link>http://tech.solin.eu/doku.php?id=ror:caching_and_localization&amp;rev=1258148021&amp;do=diff</link>
        <description>- Explain about default_url_options
- path_prefix to include locale in each url</description>
    </item>
    <item rdf:about="http://tech.solin.eu/doku.php?id=ror:how_to_enable_caching&amp;rev=1258147889&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-11-13T22:31:29+02:00</dc:date>
        <dc:creator>Onno Schuit</dc:creator>
        <title>ror:how_to_enable_caching</title>
        <link>http://tech.solin.eu/doku.php?id=ror:how_to_enable_caching&amp;rev=1258147889&amp;do=diff</link>
        <description>In and by itself, caching is not very difficult in Rails. The most immediately useful type of caching is action caching (because you can combine it with authentication). You can just use call caches_action in your controller file, giving the action to be cached as an arugment:</description>
    </item>
</rdf:RDF>
