[Boulder Ruby Group] rendering now!
Bruce Williams
bruce at codefluency.com
Sat Jun 30 12:01:21 EDT 2007
Ara,
Nice writeup.
I agree that something like render! would be useful in edge cases (I
hit double renders once in a very big blue moon) -- but in this case,
with all respects to your DRY skills and to Doug's opinions, I still
hold a filter is the best approach to the problem, and is surely
cleaner.
As to Doug's second issue; it's not something I've ever encountered in
my memory -- and since both of us have been using Rails for a "long
time" (as these things are measured), that's probably simply because
we approach problems differently.
In fact, I rarely need to render two different templates for an
action, though your authentication example is an exception.
Cheers,
Bruce
On 6/30/07, ara.t.howard <ara.t.howard at gmail.com> wrote:
>
>
> On Jun 29, 2007, at 12:13 AM, Bruce Williams wrote:
> Ara,
>
> The filter needs to return false to stop the action dispatch.
>
> Here's a working example (just played with it):
>
> <snip>
>
> the summary:
>
> http://drawohara.tumblr.com/post/4627267
>
> cheers.
>
> -a
> --
> we can deny everything, except that we have the possibility of being better.
> simply reflect on that.
> h.h. the 14th dalai lama
>
>
>
>
--
---
Bruce Williams
http://codefluency.com
More information about the Bdrg-members
mailing list