Thanks, that''s what I''m looking for... so using the
ErrorDocument
directive is the way to go. Now I just need to figure out why it''s
not working... :)
James
On 11/3/05, Ramin <i8ramin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Well, not sure if this is the best solution, but if you''re using
Apache and
> you tell it to point to your custom error 404 page or location, then you
can
> just use routes or rewrite rules to display whatever you want.
>
> for example, say you tell apache to send all 404 errors to
> /errors/404.html, then you have a route setup for
''/error/404.html'' that
> connects to your default controller another controller setup for handling
> errors.
>
> this is all theory .. not sure if its actually correct
>
>
>
> On 11/3/05, James Earl
<james-DkjEhSRHeDJAFePFGvp55w@public.gmane.org> wrote:
> >
> > Hi,
> >
> > I thought I remember reading how to do this awhile back, but
I''ve
> > searched and come up empty handed. I also tried changing:
> >
> > ErrorDocument 404 /<controller>/<action> ...but that
didn''t work
> > (shouldn''t it?)???
> >
> > What''s the simplest way to have error pages display with the
default
> layout?
> >
> > Thanks
> > _______________________________________________
> > Rails mailing list
> > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>
>
>
> --
> - Ramin
> http://www.getintothis.com/blog
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>