[Chirb] Rails question
Ryan Platte
ryan at platte.name
Sun Feb 12 23:05:47 EST 2006
On 2/10/06, Stowe, Nola <NStowe at thorntontomasetti.com> wrote:
>
>
> I'm working on a small project (5 major pages, 1 with 4 linked off, 1 with
> 3
> linked off) and I was going to just do it all in flat html files with
> dreamweaver templates (yeah, I was being kinda lazy). I got the sigle page
> sections done and find out, it would really be nice to do this page in
> with
> a database (list of new products). So I thought, hey maybe this is a good
> use for rails (don't laugh! I'm desperate for an excuse).
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! ;-)
Then I thought, maybe the better design was to create a Product controller.
> So I did. I set the submenu template name in the initialize method, and
> told
> it to use layout "Page" I tweaked the link in the layout/page.rhtml to
> call
> the Product controller. It worked.
>
> Which is the better way or are both ways stupid and you have a better one?
> :)
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.
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.
--
Ryan Platte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/chicagogroup-members-list/attachments/20060212/69535f47/attachment.htm
More information about the ChicagoGroup-Members-List
mailing list