On Mar 17, 11:04 am, "Mark Van Holstyn" <
mvanhols...@gmail.com> wrote:
> redirect_to :back if you want to go back to the last url you were at, not
> sure if that is what you are asking though...
>
> Mark
>
>
>
>
>
> On Mon, Mar 17, 2008 at 12:39 PM, Carson <
E.CarsonCampb...@gmail.com> wrote:
>
> > I'm building my first custom e-comm application in rails. My catalog
> > listings are a few directories down from the index page, arrived at
> > through various sub-category selection. After adding a product to the
> > cart, I want to redirect to the current url instead of the index. I
> > don't quite know how to do this. I seems to me that I have to capture
> > the current url and pass it to the controller action, then redirect to
> > it. But I could be way off.
>
> > Any advice?
>
> > Regards,
>
> > Carson
>
> --
> Mark Van Holstyn, Partner / Software Developer