Google Groups Home
Help | Sign in
redirect_to previous url?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Carson  
View profile
 More options Mar 17, 12:39 pm
From: Carson <E.CarsonCampb...@gmail.com>
Date: Mon, 17 Mar 2008 09:39:57 -0700 (PDT)
Local: Mon, Mar 17 2008 12:39 pm
Subject: redirect_to previous url?
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Van Holstyn  
View profile
 More options Mar 17, 1:04 pm
From: "Mark Van Holstyn" <mvanhols...@gmail.com>
Date: Mon, 17 Mar 2008 13:04:58 -0400
Local: Mon, Mar 17 2008 1:04 pm
Subject: Re: [MidWest.rb] redirect_to previous url?

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

--
Mark Van Holstyn, Partner / Software Developer
mvanhols...@mutuallyhuman.com, (616) 706-6842
Mutually Human Software, http://mutuallyhuman.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ed Jones  
View profile
 More options Mar 17, 1:09 pm
From: Ed Jones <ed.jo...@gmail.com>
Date: Mon, 17 Mar 2008 13:09:08 -0400
Local: Mon, Mar 17 2008 1:09 pm
Subject: Re: [MidWest.rb] redirect_to previous url?
Carson, I don't know the answer, but I wonder if you might find it in Chpt 2 of the excellent The Rails Way. Ch 2 explains all about the dispatcher, and at p 39 it goes to some depth about redirecting.

Ed


Carson 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


  


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carson  
View profile
 More options Mar 18, 10:02 am
From: Carson <E.CarsonCampb...@gmail.com>
Date: Tue, 18 Mar 2008 07:02:17 -0700 (PDT)
Local: Tues, Mar 18 2008 10:02 am
Subject: Re: redirect_to previous url?
Thanks Mark:

Boy! That was a fast answer.

Carson

On Mar 17, 11:04 am, "Mark Van Holstyn" <mvanhols...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carson  
View profile
 More options Mar 18, 10:11 am
From: Carson <E.CarsonCampb...@gmail.com>
Date: Tue, 18 Mar 2008 07:11:36 -0700 (PDT)
Local: Tues, Mar 18 2008 10:11 am
Subject: Re: redirect_to previous url?
Hey Ed:

Thanks for the input. I haven't seen "The Rails Way". I've been
through AWDWR and the Pickaxe. I've found the Apress RoR E-Comm book
useful in gaining some production techniques. I need a mid-level how
to book. Let me know if "The Rails Way" is at the top of your list at
this juncture. I have plenty of experience in programming but I'm new
to Rails.

If anyone else has a suggestion, I'd be pleased to hear it.

Regards,

Carson

On Mar 17, 11:09 am, Ed Jones <ed.jo...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Zach Dennis  
View profile
 More options Mar 18, 10:35 am
From: "Zach Dennis" <zach.den...@gmail.com>
Date: Tue, 18 Mar 2008 10:35:30 -0400
Local: Tues, Mar 18 2008 10:35 am
Subject: Re: [MidWest.rb] Re: redirect_to previous url?
Mark's like Jimmy John's but for Rails programming. ;)

Freaky Fast. Freaky Good.

Zach

--
Zach Dennis
http://www.continuousthinking.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google