On 2/10/06, <b class="gmail_sendername">Stowe, Nola</b> &lt;<a href="mailto:NStowe@thorntontomasetti.com">NStowe@thorntontomasetti.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I'm working on a small project (5 major pages, 1 with 4 linked off, 1 with 3<br>linked off) and I was going to just do it all in flat html files with<br>dreamweaver templates (yeah, I was being kinda lazy). I got the sigle page
<br>sections done and find out, it would really be nice to do this page in with<br>a database (list of new products). So I thought, hey maybe this is a good<br>use for rails (don't laugh! I'm desperate for an excuse).</blockquote>
<div><br>
I love it when people apologize to us for using Ruby when they didn't
actually *have* to. As if we're going to condescendingly refer you to
the PHP users group or something!&nbsp; ;-)<br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Then I thought, maybe the better design was to create a Product controller.<br>So I did. I set the submenu template name in the initialize method, and told
<br>it to use layout &quot;Page&quot; I tweaked the link in the layout/page.rhtml to call<br>the Product controller. It worked.<br><br>Which is the better way or are both ways stupid and you have a better one?<br>:)</blockquote>
<div><br>
I might go with the ProductController myself, but really, do whatever
works (especially if it brings you glee!) and just learn from any
mistakes you discover. Then if you hear about some One True Way to do
it later, you'll have some experience to help you appreciate what's
good about that solution.<br>
<br>
By the way, sorry I didn't catch that you'd reposted before releasing
your first message. I did add the other address to the trusted senders,
so now you can mail from either address with impunity.<br>
</div></div><br>-- <br>Ryan Platte