Hi Thomas,<br><br>I'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> <<a href="mailto:thomas9999@gmail.com">thomas9999@gmail.com</a>> 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'm using it right now and seems to work fine. The other line<br>might be a little hack or something but i wouldn't know how else i<br>could do it.<br><br> map.connect ':dummy', :controller => 'redirector', :action => 'redirect'
<br><br>Otherwise if someone would type in something like app/projects i'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: "1 error prohibited<br>this employee from being saved"? I've been searching for this but i<br>can't really find anything anywhere.
<br><br>Greetings<br>Thomas<br><br>2007/11/13, Verborgh Steven <<a href="mailto:Steven.Verborgh@howest.be">Steven.Verborgh@howest.be</a>>:<br>> Hi,<br>><br>> Wouldn't it work as he suggest and add an extra route like
<br>> map.connect ':category/:controller/:action/:id'<br>><br>> and use the extra parameter :category in his controllers to fill up his navigation and use in his new/edit/...?<br>><br>> steven<br>>
<br>><br>><br>> -----Original Message-----<br>> From: <a href="mailto:brug-talk-bounces@rubyforge.org">brug-talk-bounces@rubyforge.org</a> on behalf of Maarten Porters<br>> Sent: Mon 11/12/2007 11:56 PM<br>
> To: <a href="mailto:brug-talk@rubyforge.org">brug-talk@rubyforge.org</a><br>> Subject: Re: [Brug-talk] Controllers owning controllers<br>><br>> Hi Thomas,<br>><br>> after taking a quick look at your drawing, I'd consider just making a
<br>> controllers & models<br>> for each entity. I know it's sometimes a bit hard to get a good<br>> structure for your app. Just<br>> try not to make it more complicated then it actually is. (I guess this
<br>> is a pretty useless tip :)).<br>> When I'm stuck with this kind of problems, I start scaffolding my app in<br>> different ways. If it doesn't work,<br>> I start over again without losing too much time. After a while you'll
<br>> get a better understanding<br>> of your app and rails.<br>><br>> map.connect ':dummy', :controller => 'redirector', :action => 'redirect' => I really don't like this. Feels like a hack. (just my first impression)
<br>><br>><br>> greetz,<br>><br>> 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>