Hi,

You can store this information in the session, and then in your login action
you should check if session[:next_page] is present, redirect user to that
page; else to normal home page.

--
Abhinav
http://twitter.com/abhinav



On Mon, Aug 31, 2009 at 7:39 PM, Ale Ds <[email protected]>wrote:

>
> Hi,
> I have a best practice question:
>
> In my web apps you have to log in to show a certain Item, but you can
> show the item's list without log in.
>
> Here are the steps:
> Items list page -> click on certain Item -> show "log in" page -> show
> Item's page
>
> How can I do to store the "next_page" information ?
>
> whith flash[:next_page] I had some problem (because of reload current
> page)
>
>
> Any suggest ?
>
> thank you,
> Alessandro
> --
> Posted via http://www.ruby-forum.com/.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to