Hi Thomas,<br><br>I&#39;m still not sure what you are trying to do with your controllers/routes.<br><br>With regard to the error message, check <a href="http://api.rubyonrails.com/classes/ActionView/Helpers/ActiveRecordHelper.html">
http://api.rubyonrails.com/classes/ActionView/Helpers/ActiveRecordHelper.html</a>, <b>error_messages_for</b>(*params).<br><br>Kind regards,<br><br>Koen.<br>10to1<br><br><div><span class="gmail_quote">On 11/14/07, <b class="gmail_sendername">
Thomas Richard</b> &lt;<a href="mailto:thomas9999@gmail.com">thomas9999@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hey,<br><br>well I&#39;m using it right now and seems to work fine. The other line<br>might be a little hack or something but i wouldn&#39;t know how else i<br>could do it.<br><br> map.connect &#39;:dummy&#39;, :controller =&gt; &#39;redirector&#39;, :action =&gt; &#39;redirect&#39;
<br><br>Otherwise if someone would type in something like app/projects i&#39;d get<br>an error. Now i just send it to a redicert controllor wich reads out<br>the dummy paramater and redirects you to the right page. Prolly not
<br>the rails way but it works fine.<br><br>Also, is there a way to change the standard line: &quot;1 error prohibited<br>this employee from being saved&quot;? I&#39;ve been searching for this but i<br>can&#39;t really find anything anywhere.
<br><br>Greetings<br>Thomas<br><br>2007/11/13, Verborgh Steven &lt;<a href="mailto:Steven.Verborgh@howest.be">Steven.Verborgh@howest.be</a>&gt;:<br>&gt; Hi,<br>&gt;<br>&gt; Wouldn&#39;t it work as he suggest and add an extra route like
<br>&gt; map.connect &#39;:category/:controller/:action/:id&#39;<br>&gt;<br>&gt; and use the extra parameter :category in his controllers to fill up his navigation and use in his new/edit/...?<br>&gt;<br>&gt; steven<br>&gt;
<br>&gt;<br>&gt;<br>&gt; -----Original Message-----<br>&gt; From: <a href="mailto:brug-talk-bounces@rubyforge.org">brug-talk-bounces@rubyforge.org</a> on behalf of Maarten Porters<br>&gt; Sent: Mon 11/12/2007 11:56 PM<br>
&gt; To: <a href="mailto:brug-talk@rubyforge.org">brug-talk@rubyforge.org</a><br>&gt; Subject: Re: [Brug-talk] Controllers owning controllers<br>&gt;<br>&gt; Hi Thomas,<br>&gt;<br>&gt; after taking a quick look at your drawing, I&#39;d consider just making a
<br>&gt; controllers &amp; models<br>&gt; for each entity. I know it&#39;s sometimes a bit hard to get a good<br>&gt; structure for your app. Just<br>&gt; try not to make it more complicated then it actually is. (I guess this
<br>&gt; is a pretty useless tip :)).<br>&gt; When I&#39;m stuck with this kind of problems, I start scaffolding my app in<br>&gt; different ways. If it doesn&#39;t work,<br>&gt; I start over again without losing too much time. After a while you&#39;ll
<br>&gt; get a better understanding<br>&gt; of your app and rails.<br>&gt;<br>&gt; map.connect &#39;:dummy&#39;, :controller =&gt; &#39;redirector&#39;, :action =&gt; &#39;redirect&#39; =&gt; I really don&#39;t like this. Feels like a hack. (just my first impression)
<br>&gt;<br>&gt;<br>&gt; greetz,<br>&gt;<br>&gt; Maarten<br>_______________________________________________<br>Brug-talk mailing list<br><a href="mailto:Brug-talk@rubyforge.org">Brug-talk@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/brug-talk">
http://rubyforge.org/mailman/listinfo/brug-talk</a><br></blockquote></div><br>